PHP mktime() function giving unexpected error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ahmedyk
Forum Newbie
Posts: 7
Joined: Mon Jan 05, 2009 2:09 am

PHP mktime() function giving unexpected error

Post by ahmedyk »

Dear All,
Iam Using PHP mktime() function to calculate the date , this function is giving unexpected error , following is the code :

$EXday = date('d', mktime(0,0,0,0, $_POST[eday_en] - $_POST[exdays1], 0));
$EXmonth = date('m', mktime(0,0,0, $_POST[emonth_en], $_POST[eday_en] - $_POST[exdays1], 0));
$EXyear = date('Y', mktime(0,0,0, $_POST[emonth_en] , $_POST[eday_en] - $_POST[exdays1], $_POST[eyear_en]));

Please guide me if I am making any mistake in the above code.
Thank you.
marty pain
Forum Contributor
Posts: 105
Joined: Thu Jun 11, 2009 5:32 am
Location: Essex

Re: PHP mktime() function giving unexpected error

Post by marty pain »

What's the error you are getting??
Post Reply