www.webdeveloper.com
Results 1 to 2 of 2

Thread: syntax error

  1. #1
    Join Date
    Jun 2011
    Location
    California
    Posts
    383

    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(72015), 2'', array('NULL'=>'None'));
    ?>

  2. #2
    Join Date
    Jul 2007
    Location
    Wisconsin
    Posts
    468
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles