Help with a date

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
User avatar
Posts: 1240
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Tue Mar 04, 2003 7:33 am

What is it?
"Sex,Drugs and Rock&Roll " replaced at "Sucks,Bugs and Plug&Play";

Elena Mitovska
New php-forum User
New php-forum User
Posts: 13
Joined: Tue Nov 12, 2002 12:11 pm
Location: Ukraine

Tue Mar 04, 2003 7:41 am

The order of parameter for mktime command is
mktime(hour, minute, second, month, day, year)
it seems you confused the palces of $month and $date

in your code $date is set to palce for $month.
Probably that is the error
best regards,
Elena Mitovska,
AlarIt company

New php-forum User
New php-forum User
Posts: 191
Joined: Wed Jan 29, 2003 7:11 am
Location: UK

Tue Mar 04, 2003 9:34 am

tried just echoing $datestamp yet?

also - are you declaring your variables from the $_POST array prior to calling?

$datestamp = mktime(0,0,0,$_POST['Month'],$_POST['selDate'],$_POST['year']);

other than that, just check case sensitivity of all fields.
avatar image based upon nasas apod (only updates if I post though)

Post Reply