> -----Original Message----- > From: Caleb Carvalho [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 01, 2001 4:04 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Warning: Sybase message: Incorrect syntax near 't'. > > > Hi am trying to add data from html form, and it seems like > the line 14 in my script, > > $sybase_query="INSERT into problem > VALUES('$product','$pro_title','$description','$solution')"; > $sybase_result=sybase_query($sybase_query); > > Warning: Sybase message: Incorrect syntax near 't'. (severity 15) in > /var/www/html/process.php on line 14 > > Problem Title : Doesn\'t work
If I'm remembering right, Sybase would prefer to see this as Problem Title : Doesn''t work (That is, a single-quote within a string that you're passing off to Sybase should be escaped by another single-quote, not by a slash.) --- Mark Roedel | "Blessed is he who has learned to laugh Systems Programmer | at himself, for he shall never cease LeTourneau University | to be entertained." Longview, Texas, USA | -- John Powell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]