aku nok ndi : /home/astwardha/public_html/astwardha/astwardha.in/admin/ |
aku nok ndi : /home/astwardha/public_html/astwardha/astwardha.in/admin/category_status.php |
<?php include("header.php");?> <?php $id = $_GET['id']; $status = $_GET['status']; if($id && $status!="" && $status==1) { $update = mysql_query("update `category` set `status`=0 where `id`='".$id."'"); ?> <script> window.location.href='manage_category.php';</script> <?php }else { $update = mysql_query("update `category` set `status`=1 where `id`='".$id."'"); ?> <script> window.location.href='manage_category.php';</script> <?php }?>