	<?php 

include 'dbc.php';



$userid=$_SESSION["userid"];
$id=$_POST["id"];
$std_rollno=$_POST["std_rollno"];
$std_name=$_POST["std_name"];
$father_name=$_POST["father_name"];
$dob=$_POST["dob"];
$class_name=$_POST["class_name"];
$home_adress=$_POST["home_adress"];
$cell_1=$_POST["cell_1"];
$cell_2=$_POST["cell_2"];
$monthly_fee=$_POST["monthly_fee"];
$annual_fee=$_POST["annual_fee"];
$code=$_POST["code"];
$camp=$_POST["camp"];
$bal=$_POST["bal"];
$allied_code=$_POST["allied_code"];
$sec_fee=$_POST["sec_fee"];
$barcode=$_POST["barcode"];
$fno=$_POST["fno"];
$barcode=$_POST["barcode"];
$sql = "update admission set 
std_rollno='$std_rollno', std_name='$std_name' , camp='$camp', father_name='$father_name', dob='$dob', home_adress='$home_adress', cell_1='$cell_1', cell_2='$cell_2', code='$code', barcode='$barcode', allied_code='$allied_code', sec_fee='$sec_fee', fno='$fno'  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="class_wise_search.php"> Back </a>