/var/www/hkosl.com/innoutstorage/webadmin/bk20220830/product_detail_status.php


1
<?php    require_once ("check_login.php");    $id = (int)$_GET["id"];    //update related status of this product    $sql "update product set status=case when status = 1 then 0 else 1 end, lastupdate=?, lastupby=? where id=?";    $parameters = array($nowdate, (int)$_SESSION['cmsloginid'], $id);    bind_pdo($sql$parameters);    $dbh null;    header("Location: product_detail_index.php?msg=修改成功");