Home  >  Article  >  Backend Development  >  How to implement batch deletion using php using jQuery?

How to implement batch deletion using php using jQuery?

黄舟
黄舟Original
2017-07-24 14:35:231916browse

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:

How to implement batch deletion using php using jQuery? —>—>—>How to implement batch deletion using php using jQuery?
How to implement batch deletion using php using jQuery?—>—>—>How to implement batch deletion using php using jQuery?

Create view show.php


exec('set names utf8');
 $sql='select * from ***';
 $info=$pdo->query($sql)->fetchAll(PDO::FETCH_ASSOC);
?>
$v){ ?>
id title 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!

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