Forum Moderators: coopster
Currently I have to delete one by one which is very time consuming
Thanks for any idea or sample code.
Bestempire
I assume each entry has an id number? If so, try the following:
Set up your checkboxes:
<input type="checkbox" name="id[]" value="classified id here.." />
<input type="checkbox" name="id[]" value="classified id here.." />
<input type="checkbox" name="id[]" value="classified id here.." />
On process, delete any that are checked:
if (!empty($_POST['id'])) {
mysql_query("DELETE FROM classifieds WHERE id IN (".implode(',',$_POST['id']).")") or die(mysql_error());
}
Hope that helps.
dc