I would simply pass the id of the record to be deleted as the value of the checkbox...then its simply a matter of parsing the data into a comma separated string and runngin the query....
Code:
$sql="delete from tableName where ID in ($id_list)";
Follow basitenk's advice.
Make the input elements (checkboxes) an array <input name="delete_id[]" value="..., then you can just implode it into an id_list.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.