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

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

$userid=$_SESSION["userid"];
$adm_no=$_POST["adm_no"];
$sess1=$_POST["sess1"];
$month=$_POST["month"];
$adm_date=$_POST["adm_date"];
$dob=$_POST["dob"];
$class_name=$_POST["class_name"];
$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"];
$remarks=$_POST["remarks"];
$gname=$_POST["gname"];
$gnic=$_POST["gnic"];
$cell_3=$_POST["cell_3"];




$sql = "Insert into inq (id,date,adm_no,sess1,month,dob,class_name,cls_sec,std_name,fname,fnic,mnic,cell_1,cell_2,gender,address,remarks,user_id,gname,gnic,cell_3) values (null,'$adm_date','$adm_no','$sess1','$month','$dob','$class_name','$cls_sec','$std_name','$fname','$fnic','$mnic','$cell_1','$cell_2','$gender','$address','$remarks','$userid','$gname','$gnic','$cell_3')";
$conn->query($sql);

header("location:Add_Inquiry.php");

?>
