Home  >  Article  >  Backend Development  >  How to delete data in batches in php

How to delete data in batches in php

coldplay.xixi
coldplay.xixiOriginal
2020-09-30 09:59:002574browse

php method to delete data in batches: first on the article list page [list.php]; then name the multi-select box [$del_id[]], the value is the article ID number; finally process the page [del. php].

How to delete data in batches in php

php method to delete data in batches:

1. First, on the article list page (list.php), Name the multi-select box: "$del_id[]", and the value is the article ID number.

     例如(list.php):
  

2. Processing page (del.php):

  alert('删除成功!');history.back();");
      }else{
             echo("");
      }
    ?>

If you want to learn more about programming, please pay attention to the php training column!

The above is the detailed content of How to delete data in batches in php. 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