new mysql php crud code example
Example 1: delete in crud php
<?php include('server.php'); ?>
Example 2: delete in crud php
if (isset($_GET['del'])) {
$id = $_GET['del'];
mysqli_query($db, "DELETE FROM info WHERE id=$id");
$_SESSION['message'] = "Address deleted!";
header('location: index.php');
}