时间:2021-07-01 10:21:17 帮助过:10人阅读
$ID_Dele= implode(",",$_POST['ID_Dele']);
$SQL="delete from `doing` where id in ($ID_Dele)";
脚本之家提供测试代码:
代码如下:
if ($_POST["action"]="doing"){
$del_id=$_POST["ID_Dele"];
$ID_Dele= implode(",",$_POST['ID_Dele']);
echo "合并后:".$ID_Dele."
合并前:";
if($del_id!=""){
$del_num=count($del_id);
for($i=0;$i<$del_num;$i++){
echo $del_id[$i];
}
}
}else{
echo "请提交";
}
?>
http://www.bkjia.com/PHPjc/320728.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/320728.htmlTechArticle大家可以参考下面的这篇文章http://www.gxlcms.com/article/6488.htm SQL:$SQL="delete from `doing` where id in ('1,2,3,4')"; 数据用逗号隔开。 表单: ...