TheSupportForum
10-31-2012, 05:32 PM
Hi guys
im in a little need of support
this is my php script
$date1 = '2007-11-20 08:00:00';
$date2 = date('Y-m-d H:i:s');
$ts1 = strtotime($date1);
$ts2 = strtotime($date2);
$seconds_diff = $ts2 - $ts1;
$seconds_diff = floor($seconds_diff/3600/24); echo " Day " . $seconds_diff; echo " of the new world "
and i need to use $template_hook[forumhome_above_forums]
i have tried
$template_hook[forumhome_above_forums] .='
$date1 = '2007-11-20 08:00:00';
$date2 = date('Y-m-d H:i:s');
$ts1 = strtotime($date1);
$ts2 = strtotime($date2);
$seconds_diff = $ts2 - $ts1;
$seconds_diff = floor($seconds_diff/3600/24); echo " Day " . $seconds_diff; echo " of the new world "
';
i get the following error
Parse error: syntax error, unexpected T_LNUMBER in /includes/class_bootstrap.php(430) : eval()'d code on line 10
but can't see where i have gone wrong, can someone help ?
im in a little need of support
this is my php script
$date1 = '2007-11-20 08:00:00';
$date2 = date('Y-m-d H:i:s');
$ts1 = strtotime($date1);
$ts2 = strtotime($date2);
$seconds_diff = $ts2 - $ts1;
$seconds_diff = floor($seconds_diff/3600/24); echo " Day " . $seconds_diff; echo " of the new world "
and i need to use $template_hook[forumhome_above_forums]
i have tried
$template_hook[forumhome_above_forums] .='
$date1 = '2007-11-20 08:00:00';
$date2 = date('Y-m-d H:i:s');
$ts1 = strtotime($date1);
$ts2 = strtotime($date2);
$seconds_diff = $ts2 - $ts1;
$seconds_diff = floor($seconds_diff/3600/24); echo " Day " . $seconds_diff; echo " of the new world "
';
i get the following error
Parse error: syntax error, unexpected T_LNUMBER in /includes/class_bootstrap.php(430) : eval()'d code on line 10
but can't see where i have gone wrong, can someone help ?