PHP code clash with my own code
-
Hi,
I am using a counter for a specific use but for some reason it appears to clash with a categories tag. The tag is: <pre> <?php list_cats(0, ‘All’, ‘name’); ?></pre> when used on its own it works just fine, but I have a PHP include that is the counter in the same #right DIV and when this include is working the categories show like this: ‘1 2004’ instead of ‘January 2004’.
The counter code isL
<pre>
<?PHP
$date = ’01-05-2003′; # dd-mm-yyyy
list ($month, $day, $year) = split(‘-‘, $date);
$starttime = mktime(0, 0, 0, $day, $month, $year);
$today = time();
$timepassed = $today-$starttime;
$days = floor($timepassed/(60*60*24));
echo $days.’ days’;
?>
</pre>
Does anyone have any ideas what on earths going on?
Thanks
Karl
- The topic ‘PHP code clash with my own code’ is closed to new replies.