	<?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"];

$class_name=$_POST["class_name"];
$monthname=$_POST["monthname"];
$other_fee=$_POST["other_fee"];
$monthly_fee=$_POST["monthly_fee"];
$annual_fee=$_POST["annual_fee"];
$tfee=$_POST["tfee"];

$bal=$_POST["bal"];
$total=$_POST["total"];
$nettotal=$_POST["nettotal"];


$sql = "update issueslip set 
rollno='$std_rollno', stdname='$std_name' , fname='$father_name', cname='$class_name', months='$monthname', others_fee= '$other_fee', mfee= '$monthly_fee', afee='$annual_fee', gfee='$tfee', total='$total', bal='$bal', nettotal='$nettotal' where id='$id'";
mysql_query($sql) or die("Error : " . mysql_error());



echo "Record Update and goto change balance in main admission form";
/*$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"> GoTo </a>