ok
Direktori : /home/shopnoc1/www/ |
Current File : /home/shopnoc1/www/delete.php |
<?php include("db.php"); if (isset($_GET['sid'])) { $id=$_GET['sid']; $delete = "DELETE FROM studentinfo WHERE id=$id"; if ($conn->query($delete) === TRUE) { Header( 'Location: dashboard.php'); } else { echo "Error deleting record: " . $conn->error; } $conn->close(); } ?>