<?php 
session_start();
include 'dbc.php';
$userid=$_SESSION["userid"];
$id=$_POST["id"];
$cname=$_POST["cname"];
$mfee=$_POST["mfee"];
$feedisc1=$_POST["feedisc1"];
$fee1=$_POST["fee1"];
$feedisc2=$_POST["feedisc2"];
$fee2=$_POST["fee2"];
$feedisc3=$_POST["feedisc3"];
$fee3=$_POST["fee3"];
$feedisc4=$_POST["feedisc4"];
$fee4=$_POST["fee4"];
$feedisc5=$_POST["feedisc5"];
$fee5=$_POST["fee5"];
$feedisc6=$_POST["feedisc6"];
$fee6=$_POST["fee6"];

$sql = "update addclass set 
cname='$cname', mfee='$mfee' , feedisc1='$feedisc1', fee1='$fee1', feedisc2='$feedisc2', fee2='$fee2', feedisc3='$feedisc3', fee3='$fee3', feedisc4='$feedisc4', fee4='$fee4', feedisc5='$feedisc5', fee5='$fee5', feedisc6='$feedisc6', fee6='$fee6' where id='$id'";
$conn->query($sql);
$sql1 = "update admission set 
feedisc1='$feedisc1' , feedisc2='$feedisc2', feedisc3='$feedisc3', feedisc4='$feedisc4', feedisc5='$feedisc5', feedisc6='$feedisc6' where class_name='$cname'";
$conn->query($sql1);
//mysql_query($sql) or die("Error : " . mysql_error());



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