%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_6ca89795/admin/ |
Upload File : |
<?php
include('../dbcon.php');
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$id = intval($_POST['sid']);
$category = mysqli_real_escape_string($conn, $_POST['category']);
$category_ar = mysqli_real_escape_string($conn, $_POST['category_ar']);
$qry = "UPDATE `arawecovercategory` SET `category` = ?, `category_ar` = ? WHERE `id` = ?";
$stmt = $conn->prepare($qry);
$stmt->bind_param("ssi", $category, $category_ar, $id);
if ($stmt->execute()) {
echo "<script>
alert('Product Category Updated Successfully');
window.open('productcategoryshow.php?sid=$id', '_self');
</script>";
} else {
echo "<script>alert('Database Error: " . $stmt->error . "');</script>";
}
}
?>