cvs: phpdoc /en/functions mysql.xml

From: Date: Wed, 20 Mar 2002 22:21:29 +0000
Subject: cvs: phpdoc /en/functions mysql.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969343236@lists.php.net to get a copy of this message
cnewbill Wed Mar 20 17:21:29 2002 EDT Modified files: /phpdoc/en/functions mysql.xml Log: See Bug #16187 The second parameter can't be used cause a number cannot be used as an object property. ie row->0 is invalid while row->field is, so MYSQL_NUM and MYSQL_BOTH don't matter it should always be MYSQL_ASSOC. Index: phpdoc/en/functions/mysql.xml diff -u phpdoc/en/functions/mysql.xml:1.92 phpdoc/en/functions/mysql.xml:1.93 --- phpdoc/en/functions/mysql.xml:1.92 Tue Mar 19 14:54:07 2002 +++ phpdoc/en/functions/mysql.xml Wed Mar 20 17:21:29 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.92 $ --> +<!-- $Revision: 1.93 $ --> <reference id="ref.mysql"> <title>MySQL Functions</title> <titleabbrev>MySQL</titleabbrev> @@ -1134,9 +1134,6 @@ <methodsynopsis> <type>object</type><methodname>mysql_fetch_object</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter> - result_type - </parameter></methodparam> </methodsynopsis> <para> Returns an object with properties that correspond to the fetched @@ -1150,11 +1147,18 @@ their offsets (numbers are illegal property names). </para> <para> - The optional argument <parameter>result_type</parameter> is a - constant and can take the following values: MYSQL_ASSOC, - MYSQL_NUM, and MYSQL_BOTH. See - <function>mysql_fetch_array</function> for explanation - of these constants. + <programlisting role="php"> +<![CDATA[ +<?php + +// this is valid +echo $row->field; +// this is invalid +echo $row->0; + +?> +]]> + </programlisting> </para> <para> Speed-wise, the function is identical to

« previous php.doc (#969343236) next »