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

PHP batch delete sql statements_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:46:49966browse

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...
Statement:
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