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