+
+
+
+
+
+
+
+
diff --git a/conn.php b/conn.php
new file mode 100644
index 0000000..1dcef95
--- /dev/null
+++ b/conn.php
@@ -0,0 +1,14 @@
+connect_error) {
+ die("Connection failed: " . $conn->connect_error);
+}
+echo "Connected successfully";
+?>
\ No newline at end of file
diff --git a/hodapprove.php b/hodapprove.php
new file mode 100644
index 0000000..9e35022
--- /dev/null
+++ b/hodapprove.php
@@ -0,0 +1,20 @@
+query($sql);
+ //echo " request is approved";
+
+ }
+else{
+ $sql = "UPDATE `pass` SET `Approval`=\'no\' WHERE passid='$rid'";
+ //echo $conn->error();
+ $result = $conn->query($sql);
+echo "request is denied";}
+header('Location:hodapprove1.php');
+?>
\ No newline at end of file
diff --git a/hodapprove1.php b/hodapprove1.php
new file mode 100644
index 0000000..dcaf09c
--- /dev/null
+++ b/hodapprove1.php
@@ -0,0 +1,27 @@
+'yes' AND pass.Approval<>'no'";
+$result = $conn->query($sql);
+
+if ($result->num_rows > 0) {
+ // output data of each row
+ while($row = $result->fetch_assoc()) {
+
+ echo "id: " . $row["Reason"]. " - Name: " . $row["Date"]. " " . $row["Time"]. " ";
+ echo "";
+ $rid=$row["passid"];
+ echo"";
+ echo"";
+ }
+} else {
+ echo "0 results";
+}
+?>
diff --git a/hodlogin.html b/hodlogin.html
new file mode 100644
index 0000000..2cebc8e
--- /dev/null
+++ b/hodlogin.html
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+ Staff Login
+
+
+
Chaitanya Bharathi Institute of Technology
+
+
+
Staff Login
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/hodvalidate.php b/hodvalidate.php
new file mode 100644
index 0000000..e14e8c7
--- /dev/null
+++ b/hodvalidate.php
@@ -0,0 +1,28 @@
+= 1) {
+ header('Location:hodapprove1.php');
+
+ }else {
+ echo "Your Login Name or Password is invalid";
+ }
+ }
+?>
\ No newline at end of file
diff --git a/insertdb.php b/insertdb.php
new file mode 100644
index 0000000..f8a1b98
--- /dev/null
+++ b/insertdb.php
@@ -0,0 +1,31 @@
+
+connect_error) {
+ die("Connection failed: " . $conn->connect_error);
+}
+
+$sql = "INSERT INTO student1 (Name,Password,Rollnum,Branch,Year)
+VALUES ('$uname','$pw','$uid','$branch','$year')";
+
+if ($conn->query($sql) === TRUE) {
+ header('Location:login.html');
+ //echo "New record created successfully";
+} else {
+ echo "Error: " . $sql . " " . $conn->error;
+}
+
+$conn->close();
+?>
\ No newline at end of file
diff --git a/login.html b/login.html
new file mode 100644
index 0000000..d17b93a
--- /dev/null
+++ b/login.html
@@ -0,0 +1,35 @@
+
+
+
+
+
+ Student Login
+
+
+
Chaitanya Bharathi Institute of Technology
+
+
+
Student Login
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/logout.php b/logout.php
new file mode 100644
index 0000000..f7efe69
--- /dev/null
+++ b/logout.php
@@ -0,0 +1,7 @@
+
\ No newline at end of file
diff --git a/main.html b/main.html
new file mode 100644
index 0000000..718513b
--- /dev/null
+++ b/main.html
@@ -0,0 +1,40 @@
+
+
+
+
+PAGE1
+
+
+
+
+
Chaitanya Bharathi Institute Of Technology
+
+
Gate-Pass
+
+
Please select an option to continue:
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/register.html b/register.html
new file mode 100644
index 0000000..3615a17
--- /dev/null
+++ b/register.html
@@ -0,0 +1,44 @@
+
+
+
+
+ STUDENT
+
+
+
+
+
Chaitanya Bharathi Institute Of Technology
+
Registration Page
+
Enter following details and press register:
+
+
+
+
+
\ No newline at end of file
diff --git a/request.html b/request.html
new file mode 100644
index 0000000..9a3f051
--- /dev/null
+++ b/request.html
@@ -0,0 +1,48 @@
+
+