Home > Article > Backend Development > How to implement batch deletion using php using jQuery?
This article mainly introduces the PHP batch deletion jQuery operation. It is very good and has great reference value. Friends who need it can refer to the
The renderings are as follows:
—>—>—>
—>—>—>
Create view show.php
exec('set names utf8'); $sql='select * from ***'; $info=$pdo->query($sql)->fetchAll(PDO::FETCH_ASSOC); ?>
$v){ ?> id title content = $v['id'] ?> = $v['title'] ?> = $v['content'] ?>
Create adminDel.php
exec('set names utf8'); $sql='delete from *** where id in ('.$str.')'; $res=$pdo->exec($sql); //受影响行数 echo $res; ?>
The above is the detailed content of How to implement batch deletion using php using jQuery?. For more information, please follow other related articles on the PHP Chinese website!