Re: Using two colomns of mysql data as key/value pairs in arrays
| From: | Chris Boget | Date: | Mon, 20 Oct 2003 13:42:08 +0000 |
| Subject: | Re: Using two colomns of mysql data as key/value pairs in arrays | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-31153@lists.php.net to get a copy of this message | ||
> mysql_fetch_array( $result )
Actually, for an associative array (which the OP had made reference
to), you use mysql_fetch_assoc().
I avoid mysql_fetch_array() like the plague unless there is a very
specific need.
Chris