Home > Backend Development > PHP Tutorial > PHP batch delete sql statements_PHP tutorial

PHP batch delete sql statements_PHP tutorial

WBOY
Release: 2016-07-21 15:46:49
Original
997 people have browsed it

First of all, you need to understand the sql statement
$SQL="delete from `jb51` where id in (1,2,4)";
The form is probably:

Copy code The code is as follows:









PHP functions mainly use implode
Copy code The code is as follows:

$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.htmlTechArticleFirst of all, you must understand the sql statement $SQL="delete from `jb51` where id in (1,2,4) "; The form is probably: Copy the code as follows: form action="" method="post" input name="ID_Dele[]" type="chec...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template