表单
JS
del_product.php
alert('必须选择一个产品,才可以删除!');history.back(-1);";
exit;
}else{
/*如果要获取全部数值则使用下面代码*/
$id= implode(",",$_POST['id']);
$str="DELETE FROM `product` where id in ($id)";
mysql_query($str);
echo "";
}
}
?>
http://blog.csdn.net/dongsg11200/article/details/8150157
//////////////////////////////////////////////////////////
test.php
无标题文档
require "bx-sys32/common.inc.php";
$result=$db->getAll("SELECT `id`,`title` FROM `archives` where `topid` = 1 ORDER BY `id` DESC");//根据前面的计算出开始的记录和记录数
?>
delete.php
alert('必须选择一个产品,才可以删除!');history.back(-1);";
exit;
}else{
/*如果要获取全部数值则使用下面代码*/
$id= implode(",",$_POST['id']);
$str="DELETE FROM `archives` where id in ($id)";
mysql_query($str);
header('location: '.$_SERVER['HTTP_REFERER']);
}
}
?>