-
syntax error
I'm getting a syntax error in explorer but i can't find anything wrong with my code.
PHP Code:
<?php $at_time = $event->at_time;
$at_time = date_to("H:i", $at_time);
$_GET['at_time'] = $at_time;
sbox('at_time', time_array(7, 20, 15), 2, '', array('NULL'=>'None'));
?>
:mad:
-
What's the syntax error you're getting?
is $at_time supposed to be a UNIX timestamp?
What are the functions date_to(), sbox() and time_array() doing?
Also, you shouldn't normally be SETTING variables to the $_GET array...
PHP Code:
$_GET['at_time'] = $at_time;