Posted by Gerard Matthew on 04/25/06 22:41
Frizzle,
mysql_fetch_array() by default returns both result types. MYSQL_ASSOC
and MYSQL_NUM
Therefore mysql_fetch_array($result, MYSQL_BOTH) is the same as
mysql_fetch_array($result) based on the return values.
For numeric indicies you use MYSQL_NUM...
mysql_fetch_array($result,MYSQL_NUM);
and for associative indicies you would use MYSQL_ASSOC...
mysql_fetch_array($result,MYSQL_ASSOC).
Hope this helps out in understanding.
Rgds,
Gerard.
[Back to original message]
|