Look for errors in the line above this one. PHP doesn't know what SQL is...it's just a 
string to PHP.

---John Holmes...
  ----- Original Message ----- 
  From: [EMAIL PROTECTED] 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, May 29, 2002 9:03 AM
  Subject: [PHP] Parse Error(newbie)


  I get a parse error on this line

  $query = "SELECT * FROM news ORDER BY id DESC LIMIT 1";

  I believe that it is an error in the SQL statement

  Thanks in advance

  JJ Harrison
  [EMAIL PROTECTED]
  www.tececo.com


------------------------------------------------------------------------------


  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to