Re: multi dimetional arrays in functions
| From: | hentis at twilyt dot com | Date: | Wed, 04 Oct 2000 06:56:28 +0000 |
| Subject: | Re: multi dimetional arrays in functions | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18536@lists.php.net to get a copy of this message | ||
I kinda found out I'm bain stupid .. since the array structure I want is produced in the
mysql_query and then I just return the $result ..
Thanks for the hjelp tho :)
henti
On Tue, Oct 03, 2000 at 02:51:24PM -0700, Mike Glover wrote:
> How about this (not a mysql user, pardon me if I bungle a fxn call):
>
>
> while ($row=(mysql_fetch_array($result)) {
> $array[$row[ID]] = $row;
> }
>
> -mike
>
> On Tue, 3 Oct 2000, hentis@twilyt.com wrote:
> > I want to put all that into an array where the data is linked to the ID
> > so I can get the datat out for each ID afterwards ..
> >
> > any ideas ?
> >
> > henti
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
> --
>
> "don't you know about the new fashion, honey?
> all you need are looks and a whole lotta money"
> -- billy joel
>
> GnuPG key available at http://devel.duluoz.net/pubkey.asc
> Key ID = 1024D/9A256AE5 1999-11-13 Mike Glover <mpg4@duluoz.net>
> Key fingerprint = EF6E 8BCB 4810 E98C F0FD 4596 367A 32B7 9A25 6AE5
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net