Results 1 to 4 of 4

Thread: Error with Query - T_VARIABLE

  1. #1

    Thread Starter
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Error with Query - T_VARIABLE

    on this line of code:
    PHP Code:
    $query "INSERT INTO `messages` VALUES ('', '$userid_array', '$sFrom', '$sTo', '$sSubject', '$sMessage', '$logged_in_customer', '" date("Y-m-d") . "')"
    i am getting this error:

    Code:
    Parse error: syntax error, unexpected T_VARIABLE in /usr/home/homtek/public_html/send_message.php on line 74
    My usual boring signature: Something

  2. #2
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    Re: Error with Query - T_VARIABLE

    that line's syntax looks fine. look at the few lines above it to see if there are any syntax errors in them.
    Like Archer? Check out some Sterling Archer quotes.

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Error with Query - T_VARIABLE

    Check especially for the line directly above missing a semicolon.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  4. #4

    Thread Starter
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Error with Query - T_VARIABLE

    that did it. i was missing a semi-colon. thanks
    My usual boring signature: Something

Posting Permissions

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



Click Here to Expand Forum to Full Width