Jump to content

[SOLVED] mktime() problem


shadiadiph

Recommended Posts

I have just changed my site to another server and am getting the following error displayed on numerous pages.

 

Warning: mktime() expects parameter 6 to be long, string given in /home/secure/webadmin/mails/track_emails.php on line 179

 

page is diplaying fine except the error message?

 

the code that is causing it is here

 

$date = explode("-","$sent");
$newsentdate = strftime("%d-%m-%Y",mktime(0,0,0,$date[1],$date[2],$date[0]));

if ($viewed==$viewed)
{
$date1 = explode("-","$viewed");
$newvieweddate = strftime("%d-%m-%Y",mktime(0,0,0,$date1[1],$date1[2],$date1[0]));  

Link to comment
https://forums.phpfreaks.com/topic/145386-solved-mktime-problem/
Share on other sites

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.