File "delete-deposit.php"
Full Path: /home/quiczmwg/lightspringdigitals.com/admin-20260114051102/delete-deposit.php
File size: 635 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
include 'head.php';
// session_start();
if (isset($_GET['delete'])) {
$delete_id = $_GET['delete'];
// Use prepared statement to delete record
$delete_query = $conn->prepare("DELETE FROM deposit WHERE id = ?");
$delete_query->bind_param("i", $delete_id); // Bind the parameter
$delete_query->execute(); // Execute the statement
if ($delete_query) {
header('location: deposit_confirmed.php');
$_SESSION['message'] = 'Product has been deleted';
} else {
header('location: deposit_confirmed.php');
$_SESSION['message'] = 'Product could not be deleted';
}
}
?>