CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   MySQL (http://www.codingforums.com/forumdisplay.php?f=7)
-   -   mysql error created by if statement (http://www.codingforums.com/showthread.php?t=287493)

c1lonewolf 02-12-2013 07:12 AM

mysql error created by if statement
 
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?

felgall 02-12-2013 07:26 AM

Without seeing the code it is impossible to tell.


All times are GMT +1. The time now is 11:59 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.