fernandoc Sat Jun 21 15:58:04 2003 EDT Modified files: /phpdoc/en/reference/sqlite/functions sqlite-open.xml Log: Fixing example. sqlite-query need two args. Index: phpdoc/en/reference/sqlite/functions/sqlite-open.xml diff -u phpdoc/en/reference/sqlite/functions/sqlite-open.xml:1.5 phpdoc/en/reference/sqlite/functions/sqlite-open.xml:1.6 --- phpdoc/en/reference/sqlite/functions/sqlite-open.xml:1.5 Fri Jun 20 15:31:15 2003 +++ phpdoc/en/reference/sqlite/functions/sqlite-open.xml Sat Jun 21 15:58:04 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="function.sqlite-open"> <refnamediv> <refname>sqlite_open</refname> @@ -44,9 +44,9 @@ <![CDATA[ <?php if ($db = sqlite_open('mysqlitedb', 0666, $sqliteerror)) { - sqlite_query('CREATE TABLE foo (bar varchar(10))'); - sqlite_query("INSERT INTO foo VALUES ('fnord')"); - $result = sqlite_query('select bar from foo'); + 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)); } else { die ($sqliteerror);
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php