<?
$rowid = $_GET['rowid'];
$sql= "select * from risk_all where rowid= '$rowid'";
$objQuery = mysql_query($sql) or die ("Error Query [".$sql."]" . mysql_error());
$Num_Rows = mysql_num_rows($objQuery);
if (!$Num_Rows){ die("not found record id 1"); }
echo $sql;
$row = mysql_fetch_assoc($objQuery);
$rowidmed1 = $_GET['hn'];
$rowidmed1 = $_GET['n_date'];
$sqlmed="select * from mederror where hn='$hn' && n_date='$n_date'";
$querymed = mysql_query($sqlmed) or die ("Error Query [".$sqlmed."]" . mysql_error());
$Numrow = mysql_num_rows($querymed);
if (!$Numrow){ die("not found record id 2"); }
echo $sqlmed;
$rowmed = mysql_fetch_assoc($querymed);
$rowidhad1 = $_GET['hn'];
$rowidhad1 = $_GET['n_date'];
$sqlhad="select * from had where hn='$hn' && n_date='$n_date'";
$queryhad = mysql_query($sqlhad) or die ("Error Query [".$sqlhad."]" . mysql_error());
$Numrows = mysql_num_rows($queryhad);echo $sqlhad;
if (!$Numrows){ die("not found record id 3"); }
$rowhad = mysql_fetch_assoc($queryhad);
?>
<?
$rowid = $_GET['rowid'];
$sql= "select * from risk_all where rowid= '$rowid'";
$objQuery = mysql_query($sql) or die ("Error Query [".$sql."]" . mysql_error());
$Num_Rows = mysql_num_rows($objQuery);
if (!$Num_Rows){ die("not found record id 1"); }
echo $sql;
$row = mysql_fetch_assoc($objQuery);
$rowidmed1 = $_GET['n_date'];
$sqlmed="select * from mederror where hn='$hn' && n_date='$n_date'";
$querymed = mysql_query($sqlmed) or die ("Error Query [".$sqlmed."]" . mysql_error());
$Numrow = mysql_num_rows($querymed);
if (!$Numrow){ die("not found record id 2"); }
echo $sqlmed;
$rowmed = mysql_fetch_assoc($querymed);
$rowidhad1 = $_GET['n_date'];
$sqlhad="select * from had where hn='$hn' && n_date='$n_date'";
$queryhad = mysql_query($sqlhad) or die ("Error Query [".$sqlhad."]" . mysql_error());
$Numrows = mysql_num_rows($queryhad);echo $sqlhad;
if (!$Numrows){ die("not found record id 3"); }
$rowhad = mysql_fetch_assoc($queryhad);
?>