-
SitePoint Zealot

Multiple delete scripts.?
Hi all,
Can anyone point me in the direction of some good scripts that use check box's to perform multiple deletes of data stored in a mysql database.
I can't seem to find any tutorials that cover this kinda thing on the net.
Any help will be greatly appreciated.
Thanks
Matt
-
Form:
<input type="checkbox" name="ids[]" value="1">
<input type="checkbox" name="ids[]" value="2">
<input type="checkbox" name="ids[]" value="3">
.
.
.
php:
$hereValuesCommaSeperated = implode(",", $_POST["ids"]);
mysql query in php:
$queryStr = "Delete From tableName where tbl_id in ($hereValuesCommaSeperated)";
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks