欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

PHP 批量删除 sql语句_PHP教程

程序员文章站 2022-05-12 10:33:02
...
首先要了解sql语句
$SQL="delete from `jb51` where id in (1,2,4)";
表单大概是:
复制代码 代码如下:









php函数主要用到implode
复制代码 代码如下:

$ID_Dele= implode(",",$_POST['ID_Dele']);
$SQL="delete from `user` where id in ($ID_Dele)";

http://www.jb51.net/article/6488.htm

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/320064.htmlTechArticle首先要了解sql语句 $SQL="delete from `jb51` where id in (1,2,4)"; 表单大概是: 复制代码 代码如下: form action="" method="post" input name="ID_Dele[]" type="chec...