$id = $_GET['id']; mysqli_query($conn, "DELETE FROM projects WHERE id=$id"); header("Location: index.php"); ?>