ok
Direktori : /home/importfo/public_html/theglobeinternational.com/admin/ |
Current File : /home/importfo/public_html/theglobeinternational.com/admin/addstatus.php |
<?php include("config.php") ?> <?php if(isset($_POST['submit'])) { $status=$_POST['status']; $p_id=$_POST['p_id']; $sql="UPDATE parts SET status = $status WHERE p_id='$p_id'"; $result=mysqli_query($db,$sql); if($result==1) { echo ("<script LANGUAGE='JavaScript'>window.alert('Status updated.!');window.location.href='product.php';</script>"); /*echo "email send sucessfully";*/ } else { echo ("<script LANGUAGE='JavaScript'>window.alert('Status Not Updated.!');window.location.href='product.php';</script>"); } } ?>