Help with a date

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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

Re: Help with a date

Post by WiZARD » Tue Mar 04, 2003 7:33 am

What is it?

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

Post by Elena Mitovska » 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

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

Post by pootergeist » 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.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 14 guests