i have some integers entered into an array $delete. i want to delete the records from a mysql database where the id = the id's in the array. something like this:
$delete = array (1, 3, 4, 6, 22);
$rm_item_sql = "DELETE FROM test WHERE id = \"$delete\"";
mysql_query($rm_item_sql) or die("Couldn't delete items.");
this doesn't work. what can i do?