Re: Yarrrrgggghhhhh || Simplest php question in existence........

From: Date: Tue, 04 Mar 2003 03:33:08 +0000
Subject: Re: Yarrrrgggghhhhh || Simplest php question in existence........
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-138024@lists.php.net to get a copy of this message
According to the manual, "An important thing to note is that using mysql_fetch_array() is not significantly slower than using mysql_fetch_row() <http://www.php.net/manual/en/function.mysql-fetch-row.php>, while it provides a significant added value." Noah wrote:
You're on a roll. Any performance issues re: using fetch_row vs. fetch_array? Thanks again, --Noah ----- Original Message ----- From: "Leif K-Brooks" <eurleif@buyer-brokerage.com> To: "CF High" <noah@newminddesign.com> Cc: <php-general@lists.php.net> Sent: Monday, March 03, 2003 7:04 PM Subject: Re: [PHP] Yarrrrgggghhhhh || Simplest php question in existence........
Use mysql_fetch_array instead of mysql_fetch_row. CF High wrote:
Hey all. Basic question here: How can I refer to a query result set as $result['field_name'] rather
     
than
$result[0]? So, I'm looking for <? echo $result['field_name'] ?> -- just can't seem
     
to
get the right syntax. -- clueless --
     
-- The above message is encrypted with double rot13 encoding. Any
unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.general (#138024) next »