<?php
require'../connections/conn.php';
if(isset($_POST['submitold']))
{
	$app2=$_POST['app_main'];
	$app=$_POST['app'];
	$p=$_POST['p'];
	$test=$_POST['test'];
	$sxsi=$_POST['sxsi'];
	$treatment=$_POST['treatment'];
	$note=$_POST['note'];
	$bp=$_POST['bp'];
	$wt=$_POST['wt'];
	$pr=$_POST['pr'];
	$ht=$_POST['ht'];
	$temp=$_POST['temp'];
	$set="UPDATE `appointment` SET `bp`='$bp', `wt`='$wt',`ht`='$ht',`temp`='$temp',`pr`='$pr',`sx/si`='$sxsi',`test`='$test',`treatment`='$treatment',`note`='$note' WHERE  `app_id`=$app";
	$s=$conn->query($set);
	
	echo "<script type='text/javascript'>window.location.href = 'detail.php?app_id=$app2&&p_id=$p'</script>";
	//header("location:detail.php?app_id=$app2&&p_id=$p");
}

?>