mirror of
https://github.com/php/presentations.git
synced 2026-03-24 15:42:33 +01:00
15 lines
398 B
PHP
15 lines
398 B
PHP
<?php
|
|
$db = sqlite_open(dirname(__FILE__)."/db.sqlite");
|
|
|
|
/* CREATE TABLE auth_tbl (login VARCHAR(32), passwd CHAR(32)); */
|
|
$result = sqlite_query("SELECT * FROM auth_tbl", $db);
|
|
|
|
echo '<pre>';
|
|
/* array sqlite_fetch_array(resource result [, int result_type [, bool decode_binary]] ) */
|
|
while (($row = sqlite_fetch_array($result))) {
|
|
print_r($row);
|
|
}
|
|
echo '</pre>';
|
|
|
|
sqlite_close($db);
|
|
?>
|