<?php 
session_start();
include 'dbc.php';
$userid=$_SESSION["userid"];
$adm_no=$_POST["adm_no"];
$month=$_POST["month"];
$portal_id=$_POST["portal_id"];
$std_rollno=$_POST["std_rollno"];
$adm_date=$_POST["adm_date"];
$dob=$_POST["dob"];
$cls_sec=$_POST["cls_sec"];
$std_name=$_POST["std_name"];
$fname=$_POST["fname"];
$fnic=$_POST["fnic"];
$mnic=$_POST["mnic"];
$cell_1=$_POST["cell_1"];
$cell_2=$_POST["cell_2"];
$gender=$_POST["gender"];
$address=$_POST["address"];
$barcode=$_POST["barcode"];
$remarks=$_POST["remarks"];
$app_file=$_POST["app_file"];
$app_file1=$_POST["app_file1"];
$gname=$_POST["gname"];
$gnic=$_POST["gnic"];
$cell_3=$_POST["cell_3"];
$feestatus=$_POST["feestatus"];
$religion=$_POST["religion"];
$pclass=$_POST["pclass"];
$pschool=$_POST["pschool"];
$caste=$_POST["caste"];
$qabeela=$_POST["qabeela"];
$job=$_POST["job"];
$income=$_POST["income"];
$qualification=$_POST["qualification"];
$paidby=$_POST["paidby"];
$sql = "update admission set 
portal_id='$portal_id',month='$month', std_rollno='$std_rollno' , adm_date='$adm_date', dob='$dob', cls_sec='$cls_sec', std_name='$std_name', fname='$fname', fnic='$fnic', mnic='$mnic', cell_1='$cell_1', cell_2='$cell_2', gender='$gender', address='$address',gname='$gname',gnic='$gnic',cell_3='$cell_3',religion='$religion',pclass='$pclass',pschool='$pschool',caste='$caste',qabeela='$qabeela',job='$job',income='$income',qualification='$qualification',paidby='$paidby', remarks='$remarks' where adm_no='$adm_no'";
$conn->query($sql);




header("location:Edit_Student_Registration.php");

?>
