sqlite_query.php : sqlite_query « MySQL Database « PHP






sqlite_query.php

 
<?php
    $sqldb = sqlite_open("mydatabase.db");
    $results = sqlite_query($sqldb, "SELECT * FROM employee");
    while (list($empid, $name) = sqlite_fetch_array($results)) {
        echo "Name: $name (Employee ID: $empid) <br />";
    }
    sqlite_close($sqldb);
?>
  
  








Related examples in the same category

1.Advanced Functions
2.Using the sqlite_query() Function