/
clientTeamMember.php
57 lines (45 loc) · 1.09 KB
/
clientTeamMember.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
55
56
57
<?php
session_start();
if(isset($_SESSION["UN"]))
{
}
else
{
header("Location: index.php");
}
?>
<html>
<head>
<title>Client:: Team Member</title>
<link rel="stylesheet" type="text/css" href="tableStyle.css">
</head>
<body>
<hr>
<table border="1">
<tr>
<th>Position</th>
<th>Member Name</th>
<th>Member Email</th>
<th>Member Birthday</th>
<tr>
<?php
include("config.php");
$teamName=$_SESSION["team"];
$query="SELECT * FROM clientinfo WHERE Team = '$teamName' ";
$result=mysql_query($query);
while($res=mysql_fetch_array($result)){
echo "<tr>";
echo "<td>".$res['Position']."</td>";
echo "<td>".$res['Name']."</td>";
echo "<td>".$res['Email']."</td>";
echo "<td>".$res['Birthday']."</td>";
echo "</tr>";
}
?>
</table>
<hr>
<button onclick="window.location.href='clientHome.php'">My Home</button>
<button onclick="window.location.href='clientTeam.php'">My Team</button>
<button onclick="window.location.href='logOut.php'">Log Out</button>
</body>
</html>