Help with a date

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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

Re: Help with a date

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

What is it?
$selDate
$Month
$year

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

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

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

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: Yahoo [Bot] and 1 guest