<?php
include('connection.php');
//echo '656';
   
   $srno=$_GET['srno'];
  // echo $srno;


$SQL1="select * from `currentupdate` where `srno`='$srno'"; 
//echo $SQL1;
$res=mysql_query($SQL1) or die ("Error Message5" . mysql_error());
	while($rw2 = mysql_fetch_assoc($res))
{
	$status=$rw2['Status'];
	}   
if($status=='disable')
{
	
$SQL1="update `currentupdate` set  `Status`='visible' where `srno`='$srno'"; 
//echo $SQL1;
mysql_query($SQL1) or die ("Error Message5" . mysql_error());	
//echo "Updated Successfully";
	}
	else {
  	
$SQL1="update `currentupdate` set  `Status`='disable' where `srno`='$srno'"; 
//echo $SQL1;
mysql_query($SQL1) or die ("Error Message5" . mysql_error());	
//echo "Updated Successfully";
		
		}
		
		echo 1;
?>
