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