Error No. 1064 in php but its working in mysql5.5.8 directly

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
bobs
Forum Newbie
Posts: 1
Joined: Sat Aug 27, 2011 5:10 am

Error No. 1064 in php but its working in mysql5.5.8 directly

Post by bobs »

I'm getting the err msg

Error . "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '$sqry' at line 1 "

while executing query from php5.3.5
but its working directly in mysql5.5.8

Help?
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: Error No. 1064 in php but its working in mysql5.5.8 dire

Post by AbraCadaver »

There is an error in your SQL syntax.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Post Reply