-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathteacherindexsubmit.php
More file actions
45 lines (42 loc) · 928 Bytes
/
Copy pathteacherindexsubmit.php
File metadata and controls
45 lines (42 loc) · 928 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "attendance_system";
$con = new mysqli ($servername, $username, $password, $dbname);
$date = $_POST['date'];
$class = $_POST['class'];
$subject = $_POST['second'];
if($class == 'SE-IT-A' && $subject == 'DBMS')
{
include("seitadbms.php");
}
else if($class == 'SE-IT-A' && $subject == 'DSA')
{
include("seitadsa.php");
}
elseif($class == 'SE-IT-B' && $subject == 'DBMS')
{
include("seitbdbms.php");
}
elseif($class =='SE-IT-B' && $subject == 'DSA')
{
include("seitbdsa.php");
}
elseif($class == 'TE-IT-A' && $subject == 'CNS')
{
include("teitacns.php");
}
elseif($class =='TE-IT-A' && $subject == 'ADMT')
{
include("teitaadmt.php");
}
elseif($class == 'TE-IT-B' && $subject == 'CNS')
{
include("teitbcns.php");
}
elseif($class =='TE-IT-B' && $subject == 'ADMT')
{
include("teitbadmt.php");
}
?>