<?php 
session_start();
include 'dbc.php';
$userid=$_SESSION["userid"];
$id=$_POST["id"];
$sess1=$_POST["sess1"];
$month=$_POST["month"];
$adm_date=$_POST["adm_date"];
$dob=$_POST["dob"];
$remarks=$_POST["remarks"];
$class_name=$_POST["class_name"];
$cls_sec=$_POST["cls_sec"];
$std_name=$_POST["std_name"];
$fname=$_POST["fname"];
$cell_1=$_POST["cell_1"];
$cell_2=$_POST["cell_2"];
$address=$_POST["address"];
$regfee=$_POST["regfee"];
$job=$_POST["job"];
$sql = "update inq set 
adm_date='$adm_date', dob='$dob' , class_name='$class_name', cls_sec='$cls_sec', std_name='$std_name', fname='$fname', cell_1='$cell_1', sec_fee='$regfee', address='$address',remarks='$remarks',job='$job' where id='$id'";
$conn->query($sql);

//mysql_query($sql) or die("Error : " . mysql_error());



header("location:maindashboard.php");

/*$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"]);*/
?>
