Hi ,
I am trying to figure out why my PHP code to delete multiple value by selecting the checkbox is not working.
I am trying to figure out why my PHP code to delete multiple value by selecting the checkbox is not working.
DELETE FROM `your_table` WHERE `id` IN (1,2,3,4)
$ids = array(1, 2, 3, 4);
$sql = "DELETE FROM `your_table` WHERE `id` IN (" . implode(',', $ids) . ")";
Comment