Re: Question about Arrays
| From: | Richard Lynch | Date: | Tue, 10 Oct 2006 21:04:17 +0000 |
| Subject: | Re: Question about Arrays | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-242939@lists.php.net to get a copy of this message | ||
On Tue, October 10, 2006 1:04 pm, Alex Major wrote:
> I have a table, which contains 'setting' information for my website.
> The table has the following columns: setting_id, setting_name and
> setting_value.
> Now there are currently 30 settings stored in this table, however i am
> having trouble pulling values out on a 'as needed' basis.
For only 30 items in a table like this, I would have an include file
that just pulled them all down and put them in an array and be done
with it.
The query and loop for 30 items will be chump-change in your overall
resource usage.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?