Re: cgi calender
- From: oryann9@xxxxxxxxx (Oryann9)
- Date: Wed, 28 Feb 2007 12:10:36 -0800 (PST)
--- oryann9 <oryann9@xxxxxxxxx> wrote:
--- Tom Phoenix <tom@xxxxxxxxxxxxxx> wrote:
On 2/27/07, oryann9 <oryann9@xxxxxxxxx> wrote:up
Problem: cgi calender daynames are not matching
iswith dates. For example: Todays date 02/27/2007
ofbeing printed under Thursday instead of Tuesday.
Is the problem that you need to determine the day
the week for agenerally
given date, or that you need to get something to
line up vertically
with something else?
From looking briefly at your code, you seem to be
using SQL to
manipulate dates and times. In Perl, it's
easier to use ais
module to do that. (Unless, of course, using SQL
part of the
homework assignment.)
--Tom Phoenix
Stonehenge Perl Training
Tom, thank you for replying. Well I solved the
first
issue, determining the day of week for a given date
using select dayofweek(curdate()), so yes I am
having
issues lining these days line up with dates b/c as
the
days move forward the foreach $day ('-15' .. '15')
loop alters the table. This is a homework
assignment
for an online SQL class I am taking through O'reilly
for continuing education even though I work as a
Unix Engineer.
Will anyone offer some kind help?
____________________________________________________________________________________
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/
.
- References:
- Re: cgi calender
- From: Oryann9
- Re: cgi calender
- Prev by Date: Re: authenticating from w/in Perl
- Next by Date: RE: print if variable matches key
- Previous by thread: Re: cgi calender
- Next by thread: remove line if field one is duplicate
- Index(es):
Relevant Pages
|
|