<table summary="users table" border="1">
<caption>Users Table</caption>
<thead>
<tr>
<th scope="col">User Id</th>
<th scope="col">Login</th>
<th scope="col">Password</th>
<th scope="col">E-mail</th>
</tr>
</thead>
<tbody>
<?php
$db = sqlite_open("day23.sqlite");
if (!$db)
die(sqlite_error_string(sqlite_last_error($db)));
$sql = "SELECT * FROM users";
$result = sqlite_query($sql, $db);
if (!$result)
die(sqlite_error_string(sqlite_last_error($db)));
while ($row = sqlite_fetch_array($result)){
print("<tr>\n" .
"<td>" . $row["id"] . "</td>\n" .
"<td>" . $row["login"] . "</td>\n" .
"<td>" . $row["password"] . "</td>\n" .
"<td>" . $row["email"] . "</td>\n" .
"</tr>\n");
}
sqlite_close($db);
?>
</tbody>
</table>