Scusami, io devo fare in modo che lo script legga i dati su un file sqlite, legga la tabella e poi mi mostri i dati. Ho provato quello che hai gentilmente postato.
Codice PHP:
<?php
if ($db = sqlite_open('data2117', 0666, $sqliteerror)) {
sqlite_query($db, 'CREATE TABLE amministratore (username varchar(10))');
sqlite_query($db, "INSERT INTO username VALUES ('fnord')");
$result = sqlite_query($db, 'select username from amministratore');
var_dump(sqlite_fetch_array($result));
} else {
die($sqliteerror);
}
?>
mi da quest input
unable to open database: /test2/data2117