Jump to content

problem with query


Guest

Recommended Posts

$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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.