Guest 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) 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. Link to comment https://forums.phpfreaks.com/topic/235802-problem-with-query/#findComment-1212078 Share on other sites More sharing options...
Guest Posted May 7, 2011 Share Posted May 7, 2011 Oh yeah! I keep forgetting the damn quotes. I'll make sure to remember next time. Link to comment https://forums.phpfreaks.com/topic/235802-problem-with-query/#findComment-1212080 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.