-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
28 lines (26 loc) · 698 Bytes
/
index.php
File metadata and controls
28 lines (26 loc) · 698 Bytes
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
<?php
// curl https://apisql.github.io/php/api_sql.php --output api_sql.php
include '.apifunc/api_sql.php';
?>
<table class="table table-bordered">
<thead class="alert-info">
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Address</th>
</tr>
</thead>
<tbody style="background-color:#fff;">
<?php
api_sql('sqlite:db.sqlite3', "SELECT * FROM `member` ORDER BY `lastname` ASC", function ($fetch) {
?>
<tr>
<td><?php echo $fetch['firstname'] ?></td>
<td><?php echo $fetch['lastname'] ?></td>
<td><?php echo $fetch['address'] ?></td>
</tr>
<?php
});
?>
</tbody>
</table>