Date: 10/15/01
- Next message: brett: "[PHP] diplaying rows in numerical order with mysql"
- Previous message: Matthew Loff: "RE: [PHP] EXEC() with RUNDLL32 and Kernal32.DLL ???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello All,
Regarding the mysql_fetch_object() function:
It accepts two parameters. First is the result, and second is one of the
following:
MYSQL_NUM
MYSQL_ASSOC
MYSQL_BOTH
It appears to work similar to mysql_fetch_array().
The manual states:
"numbers are illegal property names"
In the context of:
"mysql_fetch_object() is similar to mysql_fetch_array(), 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)."
However, when MYSQL_NUM or MYSQL_BOTH are used, an object is returned with
the numbers for properties:
$oRow->0
$oRow->1
How can this be when "numbers are illegal property names"?
-Jason Garber
IonZoft.com
- Next message: brett: "[PHP] diplaying rows in numerical order with mysql"
- Previous message: Matthew Loff: "RE: [PHP] EXEC() with RUNDLL32 and Kernal32.DLL ???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

