-
Notifications
You must be signed in to change notification settings - Fork 0
/
account.php
122 lines (79 loc) · 2.12 KB
/
account.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="cssfile/account.css">
<link rel="stylesheet" type="text/css" href="cssfile/generalall.css">
<link rel="stylesheet" type="text/css" href="cssfile/footercss.css">
<meta charset="utf-8">
<title>account</title>
</head>
<body>
<center> <h1 style="color:white; font-family: monospace;">Account of Users</h1></center>
<!--header below-->
<?php
include("accountheader.php");
?>
<?php
include('conn.php');
$sqlget="SELECT * FROM register";
$sqldata=mysqli_query($con,$sqlget) or die('error getting');
echo "<table>";
echo "<tr>
<th>ID</th>
<th>firstname</th>
<th>lastname</th>
<th>email</th>
<th>plan</th>
<th>password</th>
<th>person</th>
<th>height</th>
<th>weight</th>
<th>update</th>
<th>delete</th>
</tr>";
while ($row=mysqli_fetch_array($sqldata,MYSQLI_ASSOC))
{
echo "<tr><td>";
echo $row['id'];
echo "</td><td>";
echo $row['firstname'];
echo "</td><td>";
echo $row['lastname'];
echo "</td><td>";
echo $row['email'];
echo "</td><td>";
echo $row['plan'];
echo "</td><td>";
echo $row['password'];
echo "</td><td>";
echo $row['person'];
echo "</td><td>";
echo $row['height'];
echo "</td><td>";
echo $row['weight'];
?>
</td><td>
<button style="border:2px solid yellow; border-radius:7px; background-color:red;color:white;">
<a href="update.php?id=<?php echo $row['id'];?>">
UPDATE
</a>
</button>
</td><td>
<button style = "border:2px solid yellow; border-radius:7px; background-color:red;color:white;" >
<a href="delete.php?id=<?php echo $row['id'];?>">
DELETE
</a>
</button>
</td></tr>
<?php
}
echo "</table>";
?>
<br>
<br>
<!----------footer------------------------------------------------------------>
<?php
include("footer.php");
?>
</body>
</html>