greenbman Posted February 11, 2013 Share Posted February 11, 2013 (edited) Ok I am getting this error: Deprecated: Function sql_regcase() is deprecated in /home/u309930328/public_html/funcvars/libfunc.php on line 17 Deprecated: Function sql_regcase() is deprecated in /home/u309930328/public_html/funcvars/libfunc.php on line 17 Deprecated: Function sql_regcase() is deprecated in /home/u309930328/public_html/funcvars/libfunc.php on line 17 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 ''firstName', 'hear', 'message') VALUES('', '', '')' at line 1 from this code: INSERT INTO reff ('firstName', 'hear', 'message') VALUES('{$fname}', '{$ham}', '{$message}'); Edited February 11, 2013 by greenbman Quote Link to comment Share on other sites More sharing options...
greenbman Posted February 11, 2013 Author Share Posted February 11, 2013 Nevermind I figured it out. Quote Link to comment Share on other sites More sharing options...
fenway Posted February 12, 2013 Share Posted February 12, 2013 You're new here -- please share how you "figured it out" next time -- even if it only took 3 minutes for you, others may benefit from your post. The issue here was quoting the column names. 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.