Need help with array/foreach
| From: | Collin Davis | Date: | Fri, 14 Jan 2005 15:28:17 +0000 |
| Subject: | Need help with array/foreach | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-206369@lists.php.net to get a copy of this message | ||
Hi,
Long time reader, first time poster. I've been using Dreamweaver to
generate my PHP (I know - but I'm a designer... most of this makes
absolutely zero sense to me), but I've run into something that I know could
be done better. If you look here: http://pastebin.com/228804 you can see
that I have several MySQL queries. Now I know that surely these can be
concatenated into an array or something, but I have no idea how to do that -
I've googled until I'm blue in the face, read tutorials about arrays and
foreach loops but I just can't make sense of it. Any help anybody could
give me would be greatly appreciated.
Thanks,
Collin Davis