query($ret_operasi); $row_operasi=@$res_operasi->fetchAll()[0]; $ret_operasi1="SELECT YEAR(NOW())-YEAR(TGLLAHIR) as usia from m_pasien where nomr='".$row_operasi[0]."'"; $res_operasi1 = $db->query($ret_operasi1); $row_operasi1=@$res_operasi1->fetchAll()[0]; $ret_operasi2="SELECT a.noruang,a.nott,b.nama FROM t_admission a,m_ruang b where a.noruang=b.no and a.nomr='".$row_operasi[0]."'"; $res_operasi2 = $db->query($ret_operasi2); $row_operasi2=@$res_operasi2->fetchAll()[0]; $ret_operasi3="SELECT * FROM t_operasi where id_operasi='".$_GET['idoperasi']."'"; $res_operasi3 = $db->query($ret_operasi3); $row_operasi3=@$res_operasi3->fetchAll()[0]; ?>