-
Notifications
You must be signed in to change notification settings - Fork 2
/
show_admin.php
54 lines (45 loc) · 1.11 KB
/
show_admin.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
54
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<style type="text/css">
tr.header
{
font-weight:bold;
}
tr.alt
{
background-color: #777777;
}
</style>
<script type="text/javascript">
$(document).ready(function(){
$('.striped tr:even').addClass('alt');
});
</script>
<title></title>
</head>
<body>
<?php
$server = mysql_connect("localhost","cperkin5","=8QYd#2T");
$db = mysql_select_db("cperkin5",$server);
$query = mysql_query("select * from Admin");
?>
<table class="striped">
<tr class="header">
<td>adminID</td>
<td>genre</td>
<td>superAdmin</td>
</tr>
<?php
while ($row = mysql_fetch_array($query)){
echo "<tr>";
echo "<td>".$row['adminID']."</td>";
echo "<td>".$row['genre']."</td>";
echo "<td>".$row['superAdmin']."</td>";
echo "<tr>";
}
?>
</table>
</body>
</html>