Domain: amberpublishers.in
Server Adress: 86.38.243.169
privdayz.com
<?php
include 'include/db.php';
if (isset($_GET['id'])) {
$bookId = $_GET['id'];
// Perform the deletion query using $bookId
$sql = "DELETE FROM book_details WHERE id = $bookId";
$result =mysqli_query($conn, $sql);
if ($result) {
// Deletion successful
echo "Book deleted successfully.";
} else {
// Deletion failed
echo "Error deleting book: " . mysqli_error($conn);
}
// Redirect back to the original page after deletion
header("Location: editbook.php");
exit();
}
?>
