<?php include ("cndb.php");$db_conn = connectdb::connect(); $con = new connectdb($db_conn);
$strSQL = "SELECT * FROM Event WHERE No = '".$_GET["No"]."' ";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
while($objResult = mysql_fetch_array($objQuery)) // line 4
{
$strSQL = "UPDATE Event SET Status='0',Resolve='Complete' WHERE No='".$_GET["No"]."' ";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
}
mysql_close();
echo "<meta http-equiv='refresh' content='3;url=index.php'>" ;
?>
<?php include ("cndb.php");$db_conn = connectdb::connect(); $con = new connectdb($db_conn);
$strSQL = "SELECT * FROM Event WHERE No = '".$_GET["No"]."' ";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]"); if(mysql_num_rows($objQuery) > 0)
{
while($objResult = mysql_fetch_array($objQuery)) // line 4
{
$strSQL = "UPDATE Event SET Status='0',Resolve='Complete' WHERE No='".$_GET["No"]."' ";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");