Re: Check for Associative Array
| From: | Jason Wong | Date: | Thu, 18 Jul 2002 17:27:35 +0000 |
| Subject: | Re: Check for Associative Array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108306@lists.php.net to get a copy of this message | ||
On Friday 19 July 2002 01:19, Martin Clifford wrote:
> Try this:
>
> while($row = mysql_fetch_assoc($result)) {
> // code here
> }
>
> This way, the resulting array will ONLY be associative.
For some unknown reason the OP specifically does not want to use
mysql_fetch_assoc()!
> I'm using mysql_fetch_array() and I want to foreach only the assoc. part of
> the array without using mysql_fetch_assoc():
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
People are beginning to notice you. Try dressing before you leave the house.
*/