mcjce46 Posted August 19, 2008 Share Posted August 19, 2008 Having problems getting past this particular error msg....Need a little help 1064 - Query Failed: 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 'of web Testing,Street Address Apt #,City,ST,Zip,9999999999,mac@macmagroup.net,t' at line 4 $i = "INSERT INTO 1campMembers (FNAM,MI,LNAM,EDU,MADDR,TOWN,ST,ZCODE,PHNUM,EML,SKLS,MSC) VALUES ($fnam,$mnam,$lnam,$edu,$maddr,$town,$st,$z,$ph,$emailaddr,$talent,$other)"; I have validating that I am not using any of the 'Reserved Words' . . . Quote Link to comment Share on other sites More sharing options...
elflacodepr Posted August 19, 2008 Share Posted August 19, 2008 what you are showing doesnt say much, can u please post the code? Quote Link to comment Share on other sites More sharing options...
mcjce46 Posted August 19, 2008 Author Share Posted August 19, 2008 The error is occurring on the INSERT INTO statement..... What more do you need to solve? Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted August 19, 2008 Share Posted August 19, 2008 String values need to be enclosed in single-quotes so that they are treated as strings and not keywords or identifiers. Quote Link to comment Share on other sites More sharing options...
mcjce46 Posted August 19, 2008 Author Share Posted August 19, 2008 So, I should enclose my php variable within ' 's ? Quote Link to comment Share on other sites More sharing options...
fenway Posted August 20, 2008 Share Posted August 20, 2008 So, I should enclose my php variable within ' 's ? Yes. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.