Hold On!!! Look in the source!? The second param exists! That's why I asked which was wrong?!
--Andrew On Wednesday 20 March 2002 04:21 pm, Chris Newbill wrote: > 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></methodpara >m> - <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 -- Thus spake the master programmer: "When a program is being tested, it is too late to make design changes." -- Geoffrey James, "The Tao of Programming"