Home >Backend Development >PHP Tutorial >The efficacy and function of Ganoderma lucidum spore powder and how to consume it. Analysis of the method of deleting data in batches using PHP
You can refer to the following article http://www.jb51.net/article/6488.htm
SQL: $SQL="delete from `doing` where id in ('1,2,3,4')" ;
Data is separated by commas.
Form:
Copy code The code is as follows:
Copy the code The code is as follows:
$ID_Dele= implode(",",$_POST['ID_Dele']);
$SQL="delete from `doing` where id in ($ ID_Dele)";
Copy code The code is as follows:
if ($_POST["action"]="doing"){
$del_id=$_POST["ID_Dele"];
$ID_Dele= implode(",",$_POST['ID_Dele']);
echo "After merge :".$ID_Dele."
Before merging:";
if($del_id!=""){
$del_num=count($del_id);
for($i=0;$i< $del_num;$i++){
echo $del_id[$i];
}
}
}else{
echo "Please submit";
}
?>
The above introduces the efficacy and function of Ganoderma lucidum spore powder and the method of consumption. The analysis of the method of batch deleting data in PHP includes the efficacy and role of Ganoderma lucidum spore powder and the method of consumption. I hope it will be helpful to friends who are interested in PHP tutorials.