Jump to content

mistakes in short code


Captain09

Recommended Posts

thanks

I got it:

 

if (((time()-COMMENCE)/86400 < 1))
$start = "today";
elseif	((round((time()-COMMENCE)/86400)) == 1)
$start = "yesterday";
elseif	((round((time()-COMMENCE)/86400)) == 2)
$start = "the day before yesterday";
else
$start = "before" <?php echo round((time()-COMMENCE)/86400);?> days";

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.