Jump to content

[SOLVED] mktime() expects parameter 4 to be long


justravis

Recommended Posts

Trying to convert a 1 or 2 digit number representing a month to a 2 digit number including a leading 0 when necessary:

$skr_grad_date="$_REQUEST[gradyr]-" . date("m", mktime(0,0,0,$_REQUEST[gradmo])) . '-00';

 

Warning: mktime() expects parameter 4 to be long, string given in /home/dm/public_html/dmd/app/mentee/index.pwr on line 212

 

Any suggestions would be greatly appreciated!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.