-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathresponse.php
53 lines (48 loc) · 1.62 KB
/
response.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
<html>
<head>
<title>War For Trezor</title>
<link rel="icon" href="https://i.imgur.com/hmaZoKf.gif" type="image/gif">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T">
<link rel="stylesheet" href="asset/css/style.css">
<link rel="stylesheet" href="asset/css/table.css">
<link href="http://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<?php include 'responseconnect.php';?>
<body>
<div class="align500">
<div class="main-wrapper">
<div class="table-wrapper">
<table class="demo-table" >
<thead>
<tr>
<th>enrollment</th>
<th>question id</th>
<th>answer</th>
<th>time</th>
</tr>
</thead>
<tbody>
<?php if ($result = $mysqli->query($query)) { ?>
<?php while ($row = $result->fetch_assoc()) { ?>
<?php
$field1name = $row["user_id"];
$field2name = $row["question_id"]-1;
$field3name = $row["answer"];
$field4name = $row["time"];
?>
<tr>
<td><?php echo '<b>'.$field1name.'</b>';?></td>
<td><?php echo '<b>'.$field2name.'</b>';?></td>
<td><?php echo '<b>'.$field3name.'</b>';?></td>
<td><?php echo '<b>'.$field4name.'</b>';?></td>
</tr>
<?php } ?>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>