if(isset($_POST["submit"])) { $clgnm=$_POST['clgnm']; $clgaddr=$_POST['clgaddr']; $cid=$_POST['cid']; $sid=$_POST['sid']; $seat=$_POST['seat']; $sql="Insert into college(ClgName,ClgAddrs,CourseId,SeatId,Seats) values ('$clgnm','$clgaddr',$cid,$sid,$seat)"; echo $sql; $result=mysql_query($sql); or die(mysql_error()); echo $result; echo "inserted "; }
$sql="Insert into college(ClgName,ClgAddrs,CourseId,SeatId,Seats) values ('$clgnm','$clgaddr',$cid,$sid,'$seat)";
$result=mysql_query($sql)or die(mysql_error());
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)