php全选删除
<?
if ($_POST['selectid']) {
$ids = implode(',', $_POST['selectid']);
mysql_query("DELETE FROM table WHERE id IN ($ids)");
} else {
echo "<script language='javascript'>alert('请选择要操作的记录!');history.back();</script>";
exit;
}
?>
php全选删除
<?
if ($_POST['selectid']) {
$ids = implode(',', $_POST['selectid']);
mysql_query("DELETE FROM table WHERE id IN ($ids)");
} else {
echo "<script language='javascript'>alert('请选择要操作的记录!');history.back();</script>";
exit;
}
?>