Jump to content

Deleteing selected rows


Kalland

Recommended Posts

Hi!

 

I have a private message system. And the user can select several messages in his inbox and delete the selected messages.

Do I have to loop through all the id's and run a update query? Or can I do it easily with one query passing the array of id's in it?

 

I tried this, which did not work:

UPDATE pm SET deleted = 1 WHERE pmID IN ( $ids )

Link to comment
https://forums.phpfreaks.com/topic/188681-deleteing-selected-rows/
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.