SunshinePHP Developer Conference 2015

Introducere

Susținerea bazelor de date SQLite de versiunea 3.

add a note add a note

User Contributed Notes 1 note

up
0
Variofox
2 years ago
Ubuntu 12.04 and up no longer has php5-sqlite3 included.

So this will no loger work:
<?php
$db
= sqlite3_open(":memory:");
?>

Use this:
<?php
$db
= new SQLite3('mysqlitedb.db');

$results = $db->query('SELECT bar FROM foo');
while (
$row = $results->fetchArray()) {
   
var_dump($row);
}
?>
To Top