Jump to content

manipulating multiple items in databse


chinclub

Recommended Posts

I know how to delete, insert, and update an item in the database using PHP.  Is there a way to do multiple items as once?

 

For example.  I have written in simple messaging system for my members.  Right now there is a link beside each message to delete it from the database. And I use this simple code to do it:

 

$del = mysql_query("DELETE FROM `messages` WHERE `id`='$id'");

 

I would love to have a check box beside each one and then a delete button at the bottom so you can delete multiple messages at once.  I am good with writing the HTML for that but how would the PHP code look that would delete each of the messages they have chosen? I have tried finding a tutorial for this on the web but no luck yet.

Link to comment
https://forums.phpfreaks.com/topic/58230-manipulating-multiple-items-in-databse/
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.