Xan's example should work (except for a few syntax errors).
if ( is_array( $_POST['foo'] ) ) { //you should use post for security
foreach( $_POST['foo'] as $id ) {
if ( is_numeric( $id ) ) {
mysql_query("DELETE FROM `table` WHERE `id` = {$id}") or die(mysql_error());
}
}
}
kkeith29
Nearly a Posting Virtuoso
1,357 posts since Jun 2007
Reputation Points: 235
Solved Threads: 194