Spring Posted May 7, 2011 Share Posted May 7, 2011 $sql = "INSERT INTO phpbb_user_comments (`person_id`,`from`,`to`,`subject`,`time`) VALUES(" . $user->data['user_id'] . "," . $user->data['username'] . ",3,4,5)"; Unknown column 'Tony' in 'field list' [1054] SQL INSERT INTO phpbb_user_comments (`person_id`,`from`,`to`,`subject`,`time`) VALUES(2,Tony,3,4,5) Quote Link to comment https://forums.phpfreaks.com/topic/235802-problem-with-query/ Share on other sites More sharing options...
PFMaBiSmAd Posted May 7, 2011 Share Posted May 7, 2011 See the solution in your previous thread - http://www.phpfreaks.com/forums/index.php?topic=332258.0 , where you had an almost identical query error message. Quote Link to comment https://forums.phpfreaks.com/topic/235802-problem-with-query/#findComment-1212078 Share on other sites More sharing options...
Spring Posted May 7, 2011 Author Share Posted May 7, 2011 Oh yeah! I keep forgetting the damn quotes. I'll make sure to remember next time. Quote Link to comment https://forums.phpfreaks.com/topic/235802-problem-with-query/#findComment-1212080 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.