	<?php 

include 'dbc.php';



$userid=$_SESSION["userid"];
$id=$_POST["id"];
$teacher_id=$_POST["teacher_id"];
$tech_name=$_POST["tech_name"];
$father_name=$_POST["father_name"];
$nic_no=$_POST["nic_no"];
$dob=$_POST["dob"];
$master_edu=$_POST["master_edu"];
$bach_edu=$_POST["bach_edu"];
$adm_date=$_POST["adm_date"];
$home_adress=$_POST["home_adress"];
$phone_no=$_POST["phone_no"];
$cell_no=$_POST["cell_no"];
$monthly_salary=$_POST["monthly_salary"];
$ap=$_POST["ap"];
$fp=$_POST["fp"];



$sql = "update teacher set 
teacher_id='$teacher_id', tech_name='$tech_name' , father_name='$father_name', nic_no='$nic_no', dob='$dob', adm_date='$adm_date',master_edu='$master_edu',bach_edu='$bach_edu', home_adress='$home_adress', phone_no='$phone_no', cell_no='$cell_no', monthly_salary= '$monthly_salary', ap= '$ap', fp= '$fp' where id='$id'";
mysql_query($sql) or die("Error : " . mysql_error());



echo "Record Update";
/*$sql="Select * from agents where userid='$user_id'";
$data=mysql_query($sql) or die ("Error:" . mysql_error());
$userdata=mysql_fetch_array($data);
$email=$userdata["e_mail"];
mail($email . ",info@lalburj.com","Candidate Information","Candidate Data Posted Successfully","Passport No:" . $app_pp_no . " of " . $app_name . "Has been Posted Successfully By:" . $_SESSION["userid"]);*/
?>
<a href="del_teacher_info.php"> Back </a>