Menu

[r162]: / sqlite_test.php  Maximize  Restore  History

Download this file

14 lines (10 with data), 321 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<?php
$error = "";
$db = sqlite_open("db/mailtide.db", 0666, $error);
sqlite_query($db, 'CREATE TABLE foo (bar varchar(10))');
sqlite_query($db, "INSERT INTO foo VALUES ('fnord')");
$result = sqlite_query($db, 'select bar from foo');
var_dump(sqlite_fetch_array($result));
print $error;
/* zs svn test 5.5.1, t2 */
?>