prepare("UPDATE sscategory set action='1' where id='$id'"); $sql1->execute(); header("Location:../listsscategory.php"); } if ($_GET["sscategory"]==1){ $id=$_GET["id"]; $sql1 = $db->prepare("UPDATE sscategory set action='0' where id='$id'"); $sql1->execute(); header("Location:../listsscategory.php"); } ?>