Re: Using two colomns of mysql data as key/value pairs in arrays

From: Date: Mon, 20 Oct 2003 14:07:33 +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-31163@lists.php.net to get a copy of this message
Chris Boget wrote:
The original poster actually mentioned an associative array with one db field as the index and another as the value. None of these, just like Ignatius's suggestion, will do the job.
Actually, mysql_fetch_assoc() will do quite nicely.
Im afraid not. I already tried that. It uses the colomn names as the keys, which is not what I need.
I didn't think it worth shooting down someone who was being helpful, though, when I made my response.
It didn't seem like he was shooting you down. Chris
I appreciate any attempts to help! :)

« previous php.db (#31163) next »