cvs: phpdoc /en/reference/sqlite/functions sqlite-changes.xml sqlite-exec.xml sqlite-fetch-all.xml sqlite-fetch-column-types.xml sqlite-num-rows.xml
sqlite-open.xml

From: Date: Wed, 19 Jan 2005 22:13:09 +0000
Subject: cvs: phpdoc /en/reference/sqlite/functions sqlite-changes.xml sqlite-exec.xml sqlite-fetch-all.xml sqlite-fetch-column-types.xml sqlite-num-rows.xml
sqlite-open.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969366060@lists.php.net to get a copy of this message
irchtml Wed Jan 19 17:13:09 2005 EDT Modified files: /phpdoc/en/reference/sqlite/functions sqlite-changes.xml sqlite-exec.xml sqlite-fetch-all.xml sqlite-fetch-column-types.xml sqlite-num-rows.xml sqlite-open.xml Log: fix examples http://cvs.php.net/diff.php/phpdoc/en/reference/sqlite/functions/sqlite-changes.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc/en/reference/sqlite/functions/sqlite-changes.xml diff -u phpdoc/en/reference/sqlite/functions/sqlite-changes.xml:1.8 phpdoc/en/reference/sqlite/functions/sqlite-changes.xml:1.9 --- phpdoc/en/reference/sqlite/functions/sqlite-changes.xml:1.8 Fri Jan 14 00:42:47 2005 +++ phpdoc/en/reference/sqlite/functions/sqlite-changes.xml Wed Jan 19 17:13:08 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <refentry id="function.sqlite-changes"> <refnamediv> <refname>sqlite_changes</refname> @@ -43,7 +43,7 @@ } /* OO Example */ -$dbhandle =& new SQLiteDatabase('mysqlitedb'); +$dbhandle = new SQLiteDatabase('mysqlitedb'); $query = $dbhandle->query("UPDATE users SET email='jDoe@example.com' WHERE username='jDoe'"); if (!$query) { exit('Error in query.'); http://cvs.php.net/diff.php/phpdoc/en/reference/sqlite/functions/sqlite-exec.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc/en/reference/sqlite/functions/sqlite-exec.xml diff -u phpdoc/en/reference/sqlite/functions/sqlite-exec.xml:1.6 phpdoc/en/reference/sqlite/functions/sqlite-exec.xml:1.7 --- phpdoc/en/reference/sqlite/functions/sqlite-exec.xml:1.6 Fri Jan 14 00:42:47 2005 +++ phpdoc/en/reference/sqlite/functions/sqlite-exec.xml Wed Jan 19 17:13:08 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <refentry id="function.sqlite-exec"> <refnamediv> <refname>sqlite_exec</refname> @@ -57,7 +57,7 @@ } /* OO Example */ -$dbhandle =& new SQLiteDatabase('mysqlitedb'); +$dbhandle = new SQLiteDatabase('mysqlitedb'); $query = $dbhandle->exec("UPDATE users SET email='jDoe@example.com' WHERE username='jDoe'"); if (!$query) { exit('Error in query.'); http://cvs.php.net/diff.php/phpdoc/en/reference/sqlite/functions/sqlite-fetch-all.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc/en/reference/sqlite/functions/sqlite-fetch-all.xml diff -u phpdoc/en/reference/sqlite/functions/sqlite-fetch-all.xml:1.3 phpdoc/en/reference/sqlite/functions/sqlite-fetch-all.xml:1.4 --- phpdoc/en/reference/sqlite/functions/sqlite-fetch-all.xml:1.3 Wed Jan 19 08:55:43 2005 +++ phpdoc/en/reference/sqlite/functions/sqlite-fetch-all.xml Wed Jan 19 17:13:08 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="function.sqlite-fetch-all"> <refnamediv> <refname>sqlite_fetch_all</refname> @@ -56,7 +56,7 @@ } /* OO Example */ -$dbhandle =& new SQLiteDatabase('sqlitedb'); +$dbhandle = new SQLiteDatabase('sqlitedb'); $query = $dbhandle->query("SELECT name, email FROM users LIMIT 25"); // buffered result set $query = $dbhandle->unbufferedQuery("SELECT name, email FROM users LIMIT 25"); // unbuffered result set http://cvs.php.net/diff.php/phpdoc/en/reference/sqlite/functions/sqlite-fetch-column-types.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc/en/reference/sqlite/functions/sqlite-fetch-column-types.xml diff -u phpdoc/en/reference/sqlite/functions/sqlite-fetch-column-types.xml:1.5 phpdoc/en/reference/sqlite/functions/sqlite-fetch-column-types.xml:1.6 --- phpdoc/en/reference/sqlite/functions/sqlite-fetch-column-types.xml:1.5 Fri Jan 14 04:07:02 2005 +++ phpdoc/en/reference/sqlite/functions/sqlite-fetch-column-types.xml Wed Jan 19 17:13:08 2005 @@ -1,5 +1,5 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="function.sqlite-fetch-column-types"> <refnamediv> <refname>sqlite_fetch_column_types</refname> @@ -58,7 +58,7 @@ */ /* OO Example */ -$db =& new SQLiteDatabase('mysqlitedb'); +$db = new SQLiteDatabase('mysqlitedb'); $db->query('CREATE TABLE foo (bar varchar(10), arf text)'); $cols = $db->fetchColumnTypes('foo', SQLITE_ASSOC); http://cvs.php.net/diff.php/phpdoc/en/reference/sqlite/functions/sqlite-num-rows.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc/en/reference/sqlite/functions/sqlite-num-rows.xml diff -u phpdoc/en/reference/sqlite/functions/sqlite-num-rows.xml:1.8 phpdoc/en/reference/sqlite/functions/sqlite-num-rows.xml:1.9 --- phpdoc/en/reference/sqlite/functions/sqlite-num-rows.xml:1.8 Fri Jan 14 04:07:02 2005 +++ phpdoc/en/reference/sqlite/functions/sqlite-num-rows.xml Wed Jan 19 17:13:08 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <refentry id="function.sqlite-num-rows"> <refnamediv> <refname>sqlite_num_rows</refname> @@ -38,7 +38,7 @@ echo "Number of rows: $rows"; /* OO Example */ -$db =& new SQLiteDatabase('mysqlitedb'); +$db = new SQLiteDatabase('mysqlitedb'); $result = $db->query("SELECT * FROM mytable WHERE name='John Doe'"); $rows = $result->numRows(); http://cvs.php.net/diff.php/phpdoc/en/reference/sqlite/functions/sqlite-open.xml?r1=1.14&r2=1.15&ty=u Index: phpdoc/en/reference/sqlite/functions/sqlite-open.xml diff -u phpdoc/en/reference/sqlite/functions/sqlite-open.xml:1.14 phpdoc/en/reference/sqlite/functions/sqlite-open.xml:1.15 --- phpdoc/en/reference/sqlite/functions/sqlite-open.xml:1.14 Fri Jan 14 00:42:48 2005 +++ phpdoc/en/reference/sqlite/functions/sqlite-open.xml Wed Jan 19 17:13:08 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> +<!-- $Revision: 1.15 $ --> <refentry id="function.sqlite-open"> <refnamediv> <refname>sqlite_open</refname> @@ -16,12 +16,12 @@ <para>Object oriented style (constructor):</para> <classsynopsis> <ooclass><classname>SQLiteDatabase</classname></ooclass> - <methodsynopsis> + <constructorsynopsis> <methodname>__construct</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter role="reference">error_message</parameter></methodparam> - </methodsynopsis> + </constructorsynopsis> </classsynopsis> <para> Returns a resource (database handle) on success, &false; on error.

« previous php.doc (#969366060) next »