View Full Version : mysql error created by if statement

02-12-2013, 08:12 AM
I have a script where I use the 'insert into table' command to add a new entry to the data table. It's used in a switch and has no problems, however, when I copied it as is to an if statement I got an error telling me to check my version syntax next to '' at line 1. I removed the if satement and it ran perfectly when tested. So why would an if statement cause an error?

02-12-2013, 08:26 AM
Without seeing the code it is impossible to tell.