





<?php
	require_once('../auth.php');
require('../configuration.php');
?>
<?php
$No = $_POST['pNo'];
$checkbox1 = $_POST['medicineName'];
$patno = $_POST['pNo'];
for ($i=0; $i<sizeof($checkbox1);$i++) {
	$query="INSERT INTO  procedurers (procname,paNo) VALUES ('".$checkbox1[$i]."','".$patno."','Not Yet')";
	mysql_query($query) or die (mysql_error());
}


			if($query){

				echo ' Your patient form has been updated, Please wait... ';

				echo '<script type="text/javascript">

						var myVar=setInterval(function(){myTimer()},2000);

				function myTimer()
				{
					window.location="viewDiagno.php";

				}
			</script>';
			}else {	echo mysql_error();	}

	
	

?>