<?php 
session_start();
include 'dbc.php';
$userid=$_SESSION["userid"];
$class_name=$_POST["class_name"];
$cls_sec=$_POST["cls_sec"];
$sub1=$_POST["sub1"];
$sub2=$_POST["sub2"];
$sub3=$_POST["sub3"];
$sub4=$_POST["sub4"];
$sub5=$_POST["sub5"];
$sub6=$_POST["sub6"];
$sub7=$_POST["sub7"];
$sub8=$_POST["sub8"];
$sub9=$_POST["sub9"];
$sub10=$_POST["sub10"];
$tech9=$_POST['tech9'] ;
$tech10=$_POST['tech10'] ;
$tech1=$_POST['tech1'] ;
$tech2=$_POST['tech2'] ;
$tech3=$_POST['tech3'] ;
$tech4=$_POST['tech4'] ;
$tech5=$_POST['tech5'] ;
$tech6=$_POST['tech6'] ;
$tech7=$_POST['tech7'] ;
$tech8=$_POST['tech8'] ;


$sql = "Insert into addsubject (id,class_name,sub1,sub2,sub3,sub4,sub5,sub6,sub7,sub8,user_id,tech1,tech2,tech3,tech4,tech5,tech6,tech7,tech8,sub9,tech9,sub10,tech10,cls_sec) values (null,'$class_name','$sub1','$sub2','$sub3','$sub4','$sub5','$sub6','$sub7','$sub8','$userid','$tech1','$tech2','$tech3','$tech4','$tech5','$tech6','$tech7','$tech8','$sub9','$tech9','$sub10','$tech10','$cls_sec')";
$conn->query($sql);
//mysql_query($sql) or die("Error : " . mysql_error());



header("location:Add_Subjects.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"]);*/
?>
