ID:          16187
 Updated by:  [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
-Status:      Open
+Status:      Bogus
 Bug Type:    Documentation problem
 PHP Version: 4.1.2
 New Comment:

The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php

Anyway, it means you can use
$object->field (with the fieldnames like in mysql_fetch_array)
but not
$object->1 (like in mysql_fetch_row).

If you want more clarification to translate something correctly, ask it
on [EMAIL PROTECTED] If you just want to know how it works, ask on
[EMAIL PROTECTED]


Previous Comments:
------------------------------------------------------------------------

[2002-03-20 10:57:18] [EMAIL PROTECTED]

<para>
     <function>mysql_fetch_object</function> is similar to
     <function>mysql_fetch_array</function>, with one difference - an
     object is returned, instead of an array.  Indirectly, that means
     that you can only access the data by the field names, and not by
     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.
    </para>

Could someone please explain this?

TIA,

Manuzhai

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=16187&edit=1

Reply via email to