cvs: phpdoc /en/reference/pgsql/functions pg-fetch-object.xml

From: Date: Mon, 09 May 2005 01:36:07 +0000
Subject: cvs: phpdoc /en/reference/pgsql/functions pg-fetch-object.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969368213@lists.php.net to get a copy of this message
chriskl Sun May 8 21:36:07 2005 EDT Modified files: /phpdoc/en/reference/pgsql/functions pg-fetch-object.xml Log: - Fix error in example as suggested in doc comment. http://cvs.php.net/diff.php/phpdoc/en/reference/pgsql/functions/pg-fetch-object.xml?r1=1.17&r2=1.18&ty=u Index: phpdoc/en/reference/pgsql/functions/pg-fetch-object.xml diff -u phpdoc/en/reference/pgsql/functions/pg-fetch-object.xml:1.17 phpdoc/en/reference/pgsql/functions/pg-fetch-object.xml:1.18 --- phpdoc/en/reference/pgsql/functions/pg-fetch-object.xml:1.17 Thu Apr 7 07:47:32 2005 +++ phpdoc/en/reference/pgsql/functions/pg-fetch-object.xml Sun May 8 21:36:07 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.17 $ --> +<!-- $Revision: 1.18 $ --> <!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 --> <refentry id="function.pg-fetch-object"> <refnamediv> @@ -141,13 +141,11 @@ $qu = pg_query($db_conn, "SELECT * FROM books ORDER BY author"); -$row = 0; // postgres needs a row counter -while ($data = pg_fetch_object($qu, $row)) { +while ($data = pg_fetch_object($qu)) { echo $data->author . " ("; echo $data->year . "): "; echo $data->title . "<br />"; - $row++; } pg_free_result($qu);

« previous php.doc (#969368213) next »