Php Error advice

Status
Not open for further replies.

Callme

New member
Mar 23, 2008
1
0
0
Im using a script to carryout a search on a mysql database and im getting the following 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"
Can anyone provide some info on this, is this something to do with the sql query i am using? Any advice would be must appreciated.
 


Are you seeing any error number before this? If yes, try googling that number for mysql errors.

Tell us what query you are running, so that we can look for the syntactical error.
 
Something is up with your SQL statement. Echo your SQL statement right before you try to run it and see what the problem is.
 
exactly what wdmny said, store the query you're about to send to mysql_query in a variable and echo it and then you can figure out where it fucked up.
 
Status
Not open for further replies.