Posted by Rich on 05/09/06 20:42
On Tue, 09 May 2006 17:25:00 +0100, Usenet wrote...
>
>> The correct way to handle a db request is below.
>
>I thought I read that "mysql_fetch_array" was thought to be a slow way to do
>this and "mysql_fetch_row" is faster/better?
>
>Regards
>Mark
>
Based on the information at php.net if "mysql_fetch_array" is run with
"MYSQL_NUM" it would be the equivalent of "mysql_fetch_row". Performance-wise
I'm not sure how they would differ but functionally they appear to do the same.
With "mysql_fetch_array" though, that can use the "MYSQL_ASSOC" option to return
an associative array. Probably just depends on what you need.
--
NewsGuy.Com 30Gb $9.95 Carry Forward and On Demand Bandwidth
Navigation:
[Reply to this message]
|