Click to See Complete Forum and Search --> : SQL syntax error message is wrong


strBean
02-14-2007, 05:37 PM
I'm getting "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 ')' at line 1". I have not changed this string since it worked just fine a few minutes ago. I double-checked to make sure I hadn't inadvertently changed it, and double-checked the syntax.

What else can cause this message when you know your SQL syntax is correct?

NightShift58
02-14-2007, 05:54 PM
Try echoing the SQL statement as part of the die(). You'll see what went wrong in the last few minutes...

strBean
02-14-2007, 06:41 PM
Gracias, amigo. Ya encontré la variable que era vacía, pero Ud. tiene una buena idea que voy a probar la próxima vez que el problema ocurre, antes de que arranque mi cabello.

NightShift58
02-14-2007, 07:32 PM
Asi tiene que ser...