Forum Moderators: coopster
I am fighting with this problem over a week, so if someone can help please do.
I am building a private messaging system and i have a member system that i made. It contains ID (auto increment), nick, password...
The problem is that i don't know how to insert private message that is being sent to user. There is no insert WHERE statement. Does anyone know how to insert private message WHERE id of user = $someuser.
Please help.
INSERT [LOW_PRIORITY ¦ DELAYED ¦ HIGH_PRIORITY] [IGNORE]
[INTO] tbl_name [(col_name,...)]
VALUES ({expr ¦ DEFAULT},...),(...),...
[ ON DUPLICATE KEY UPDATE col_name=expr, ... ]Or:
INSERT [LOW_PRIORITY ¦ DELAYED ¦ HIGH_PRIORITY] [IGNORE]
[INTO] tbl_name
SET col_name={expr ¦ DEFAULT}, ...
[ ON DUPLICATE KEY UPDATE col_name=expr, ... ]Or:
INSERT [LOW_PRIORITY ¦ HIGH_PRIORITY] [IGNORE]
[INTO] tbl_name [(col_name,...)]
SELECT ...
[ ON DUPLICATE KEY UPDATE col_name=expr, ... ]