-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshowfaculty.php
53 lines (38 loc) · 1.12 KB
/
showfaculty.php
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
46
47
48
49
50
51
52
53
<html>
<br>
<head><H1><font color="red" size="30" align="center"><u><center>ATTENDANCE TABLE</center></u></font></H1></head>
<body background="C:\Users\Amisha\Desktop\webD\mnnit44.jpg">
</body>
</html>
<?php
session_start();
if(isset($_SESSION['facultyID']))
{$p=$_SESSION['facultyID'];
mysql_connect("localhost","root","");
mysql_select_db("AMS");
$query="SELECT * FROM student";
$result=mysql_query($query);
echo"<font size='15' face='sans-serif' colour='white'>";
echo"<br><br><table border='5' align='center' cellspacing='5' bgcolor='green' cellpadding='10' height='40'>";
echo"<tr>";
echo"<td width='15%'>NAME</td>";
echo"<td width='15%'>STUDENT-ID</td>";
echo"<td width='15%'>ATTENDANCE</td>";
echo"</tr>";
while($row=mysql_fetch_array($result))
{
echo"<tr>";
echo"<td width='15%'>".$row[0]."</td>";
echo"<td width='15%'>".$row[2]."</td>";
echo"<td width='15%'>".$row[3]."</td>";
echo"</tr>";
}
echo"</table>";
}
else
{header("location:formfaculty.php");}
?>
<html>
<body><center>
<a href="welcomefaculty.php">CLICK HERE TO GO BACK</a>
</center></body></html>