another way to do this is (quicker, using only one query):

$delete_IDs = implode(",",$name_array);
$sql = "DELETE FROM $mysql_table WHERE id IN ($delete_IDs)";

or you could delete the first line (implode) and take the square 
brackets out of the name of the form field. this will make a 
comma-delimited string of all your selected ID numbers, and will be 
available in $name_array

your choice


PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to