<?php 
session_start();
include 'dbc.php';

date_default_timezone_set("Asia/Karachi");
$today=date("Y-m-d");

$userid=$_SESSION["userid"];
$date=$_POST["date"];
$fname=$_POST["fname"];
$qabeela=$_POST["qabeela"];
$job=$_POST["job"];
$income=$_POST["income"];
$fnic=$_POST["fnic"];
$cell_1=$_POST["cell_1"];
$address=$_POST["address"];
$details=$_POST["details"];
$details1=$_POST["details1"];
$std_name=$_POST["std_name"];
$class_name=$_POST["class_name"];
$bal=$_POST["bal"];
$mfee=$_POST["mfee"];
$exam=$_POST["exam"];
$atten=$_POST["atten"];
$remarks=$_POST["remarks"];
$std_rollno=$_POST["std_rollno"];

$sql = "Insert into application (id,date,fname,qabeela,job,income,fnic,cell_1,address,details,details1,std_name,class_name,mfee,exam,atten,remarks,user_id,bal,std_rollno) values (null,'$date','$fname','$qabeela','$job','$income','$fnic','$cell_1','$address','$details','$details1','$std_name','$class_name','$mfee','$exam','$atten','$remarks','$userid','$bal','$std_rollno')";
$conn->query($sql);

header("location:Edit_Student_Registration.php");

?>
