- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommerce.php
More file actions
Latest commit
19 lines (18 loc) · 458 Bytes
/
Copy pathcommerce.php
File metadata and controls
19 lines (18 loc) · 458 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
$sql = "SELECT * FROM commerce WHERE ID='$user_check'";
$query = mysqli_query($conn, $sql);
if (!$query) {
die ('SQL Error: ' . mysqli_error($conn));
}
$no = 1;
$total = 0;
while ($row = mysqli_fetch_array($query))
{
$score = $row['score'] == 0 ? '' : number_format($row['score']);
echo'<tr>
<td>Commerce</td>
<td>'.$score.'</td>
<td>'.$row['grade'].'</td>
<td>'.$row['remarks'].'</td>
</tr>';
}?>