-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEnterStudent.php
More file actions
26 lines (20 loc) · 811 Bytes
/
EnterStudent.php
File metadata and controls
26 lines (20 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
$conn = oci_connect('cse_15101028', '15101028', '172.16.61.126/dbtest');
if (!$conn) {
$e = oci_error();
trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
}
$FirstName = $_POST['FirstName'];
$LastName = $_POST['LastName'];
$RollNo = $_POST['RollNo'];
$password = $_POST['password'];
$Branch = $_POST['Branch'];
$EmaiID = $_POST['EmaiID'];
$ContactNo = $_POST['ContactNo'];
$sql = 'insert into STUDENTDB(USER_NAME,PASSWORD,FIRST_NAME,LAST_NAME,CONTACT_NO,EMAILID,BRANCH) values(\''.$RollNo.'\',\''.$password.'\',\''.$FirstName.'\',\''.$LastName.'\',\''.$ContactNo.'\',\''.$EmaiID.'\',\''.$Branch.'\')';
$stid = oci_parse($conn, $sql);
oci_execute($stid);
header("Location:addstudent.php?error=1");
oci_free_statement($stid);
oci_close($conn);
?>