delete code in php crud code example
Example 1: delete in crud php
<link rel="stylesheet" type="text/css" href="style.css">
Example 2: delete in crud php
<?php
if (isset($_GET['edit'])) {
$id = $_GET['edit'];
$update = true;
$record = mysqli_query($db, "SELECT * FROM info WHERE id=$id");
if (count($record) == 1 ) {
$n = mysqli_fetch_array($record);
$name = $n['name'];
$address = $n['address'];
}
}
?>