Uname : Linux V-ShopU01 4.18.0-348.20.1.el8_5.x86_64 #1 SMP Thu Mar 10 20:59:28 UTC 2022 x86_64
Server : Apache/2.4.37 (rocky) OpenSSL/1.1.1k
Whoami : apache
Safe Mode : OFF
DOCUMENT ROOT : /var/www/html/site_shopudiet
Disable Function :
Path : /var/www/html/site_shopudiet/admin/

Server IP : 65.20.74.164 Client IP : 13.58.3.72
Current File : /var/www/html/site_shopudiet/admin/status-yes.php
	
<?php
include('dbconnect.php');
$home_id = $_GET['id'];
$status='no';


mysqli_query($conn,"  UPDATE `product` SET `status`='$status'where id='$home_id' ");

  if(mysqli_affected_rows($conn) > 0){
    echo "<script> alert('update success'); window.location.href='product_list.php'; </script>";
  } else {
     echo "<script> alert('update not success'); window.location.href='product_lit.php'; </script>";
    echo mysqli_error ($conn);
  } 

?>