Re: How do I access a mysql result array?
| From: | Hugh Bothwell | Date: | Mon, 09 Dec 2002 01:32:46 +0000 |
| Subject: | Re: How do I access a mysql result array? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17350@lists.php.net to get a copy of this message | ||
"Matt Babineau" <matt@criticalcode.com> wrote in message
news:002c01c29f20$cf908500$1a10a8c0@webdevx...
> How can I access a mysql result array numerically?
>
> Like:
>
> $result[0][0];
> $result[1][0];
>
> I want to be able to access one whole column at a time.
>
> Any ideas?
Directly, you can only access one record at a time. If you need to do some
sort of random-access manipulation, you'll have to read all the results into
an array, then play with them from there.
What are you trying to accomplish?