Querying a database

suggest change
<?php
//Create a new SQLite3 object from a database file on the server.
$database = new SQLite3('mysqlitedb.db');

//Query the database with SQL
$results = $database->query('SELECT bar FROM foo');

//Iterate through all of the results, var_dumping them onto the page
while ($row = $results->fetchArray()) {
    var_dump($row);
}
?>

See also http://stackoverflow.com/documentation/sql/topics

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents