Viewing file: teacherregistrationadata.php (712 B) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include('session.php'); ?>
<?php $con=mysqli_connect("localhost",'itce_user','rb!itc838',"itce_data"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); }
$sql = "INSERT INTO teacher_registration (name, fathers, mobile, qualificaiton,address,email,identity_no,branch) VALUES ('$_POST[name]','$_POST[fathername]','$_POST[mobile]','$_POST[qualification]','$_POST[address]','$_POST[email]','$_POST[staffcode]','$user')";
if (!mysqli_query($con,$sql)) { die('Error: ' . mysqli_error($con)); }
mysqli_close($con);
?> <script type="text/javascript"> window.location.href = "allteachershow.php" </script>
|