| Server IP : 66.29.146.62 / Your IP : 216.73.216.152 Web Server : LiteSpeed System : Linux premium231.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 User : dokkdzvi ( 925) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/dokkdzvi/goldenmayar-omn.store/controlPanel/ |
Upload File : |
<?php
include "master.php";
?>
<script>
function myFunction() {
var x = document.getElementById("snackbar");
// x.classList.add("show");
x.className = "show";
setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000);
}
</script>
<?php
$id = $_GET['id'];
$sql = "DELETE FROM `products` WHERE product_id = $id";
$rs = $db->dbQuery($sql);
$err = "تم الحذف بنجاح";
echo '
<script>
$(document).ready(function(){
$("#snackbar").addClass("show");
setTimeout(function(){
$("#snackbar").removeClass("show");
}, 3000);
});
</script>
';
echo "<meta http-equiv='refresh' content='3;URL=products.php'>";
?>
<div id="snackbar" class="">تم الحذف بنجاح</div>