Advertisement
kotvalera83

Connect to a SQLite3 db

Nov 29th, 2013
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.16 KB | None | 0 0
  1. <?php
  2. $db = new SQLite3('mysqlitedb.db');
  3.  
  4. $results = $db->query('SELECT bar FROM foo');
  5. while ($row = $results->fetchArray()) {
  6.     var_dump($row);
  7. }
  8. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement