We need to analyze your 'WHERE' clause peice by peice
what you're telling the database is this:
Look at each row in the tabe,
if user_id = 7 is true then delete it
or, if 12 is true then delete it.
since any non zero number will always evaluate to true, every row gets deleted.
You need to change your query to look like this :
Code:
DELETE FROM `phpbb_users`
WHERE `user_id` = '7'
OR `user_id` = '12'
|