Help with a date

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

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

Tue Mar 04, 2003 7:33 am

What is it?
$selDate
$Month
$year
"Sex,Drugs and Rock&Roll " replaced at "Sucks,Bugs and Plug&Play";
Image

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

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,
wed_developer,
AlarIt company
http://www.alarit.com

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

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
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest