<?php
    
include("../include/FunctionDB.php");
    
ConnectDB();            
//$Date_note = $_POST[mYear]."-".$_POST[mMonth]."-".$_POST[mDate];
$Student_id $_POST[Student_id];
$Date_not $_POST[Date_note];
//echo"$Student_id";
$sql "UPDATE std_health_tb SET  Weight='$Weight',Height='$Height',Date_note='$Date_note',B_group='$B_group',Presure='$Presure',Symptom='$Symptom',Disease='$Disease',Treat='$Treat',Place_Treat='$Place_Treat',Medicine='$Medicine',Bad_Medic='$Bad_Medic',Bad_Food='$Bad_Food'  WHERE code ='$code' ";
$result mysql_query($sql) or die("Update Error $sql".mysql_error());
   echo
"<center><font face=\"Tahoma\"size=\"6\" color=\"#FF0000\">Update Complete</font></center>";
  echo
"<meta http-equiv=\"refresh\" content=\"1;URL=EditHealthList.php?Student_id=$Student_id\">";
//    header("Location:EditHealthList.php?Student_id=$Student_id");                
        
CloseDB();
?>