You are here: Re: another question: foreach() « All PHP « IT news, forums, messages
Re: another question: foreach()

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация