Hello
Is there a function to automatically make php appear colour coded, such as...
Is there a function to automatically make php appear colour coded, such as...
PHP:
<?php
$d1="2006-08-08";
$d2="2006-08-09";
$today=strtotime($d1); // first date
$yesday=strtotime($d2); // second
$datet = getdate($today);
$datey = getdate($yesday);
$t1=$datet['yday'];
$t2=$datey['yday'];
echo $t0=$t2-$t1; // between my two dates will be '1 day'
echo "<br>".$tt=time()+($t0*86400); // in seconds
?>