Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once 'conn.php';
- if(ISSET($_POST['remove'])){
- if(ISSET($_POST['mem_id'])){
- foreach($_POST['mem_id'] as $key => $value){
- mysqli_query($conn, "DELETE FROM `member` WHERE `mem_id` = '$value'") or die(mysqli_error());
- }
- header('location: index.php');
- }else{
- echo "<script>alert('Please select something first!')</script>";
- echo "<script>window.location= 'index.php'</script>";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement