GIF89a;
Direktori : /home/serb/public_html/admin/ |
Current File : /home/serb/public_html/admin/update_swingersclubs.php |
<? include("sessionout.php"); include("../lib/globals.php"); include("../lib/common.php"); include("../lib/functions.php"); ?> <? $id=$_GET['id']; $sql="SELECT * FROM swingers_clubs WHERE cid='$id'"; $res=execute_query($sql); $row=mysql_fetch_array($res); $status=$row['cstatus']; if($status=='Active') { $newstatus='u'; } else { $newstatus='Active'; } $sql2="UPDATE swingers_clubs SET cstatus='$newstatus' WHERE cid='$id'"; execute_query($sql2); ?> <script language="javascript"> location.href="list_swingerclubs.php"; </script>