-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathselect.php
47 lines (47 loc) · 1.76 KB
/
select.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
<?php
if(isset($_POST["customer_id"]))
{
$output = '';
$connect = mysqli_connect('localhost','root',"",'cartsystem');
$query = "SELECT * FROM users WHERE id = '".$_POST["customer_id"]."'";
$result = mysqli_query($connect, $query);
$output .= '
<div class="table-responsive">
<table class="table table-bordered">';
while($row = mysqli_fetch_array($result))
{
$output .= '
<tr>
<td width="30%"><label>Name</label></td>
<td width="70%">'.$row["username"].'</td>
</tr>
<tr>
<td width="30%"><label>Email</label></td>
<td width="70%">'.$row["email"].'</td>
</tr>
<tr>
<td width="30%"><label>Address</label></td>
<td width="70%">'.$row["address"].'</td>
</tr>
<tr>
<td width="30%"><label>Member since</label></td>
<td width="70%">'.$row["joined"].'</td>
</tr>
<tr>
<td width="30%"><label>Gender</label></td>
<td width="70%">'.$row["gender"].'</td>
</tr>
<tr>
<td width="30%"><label>Contact</label></td>
<td width="70%">'.$row["contact"].'</td>
</tr>
<tr>
<td width="30%"><label>Verified</label></td>
<td width="70%">'.$row["verified"].'</td>
</tr>
';
}
$output .= "</table></div>";
echo $output;
}
?>