Jump to content

What a load of arrays


onlyican

Recommended Posts

Hey

Now, this is going to be a bit confusing

I have 4 MySQL Tables

[b]Product[/b]
Product information such as Product name, Dimensions Ect
AND
A ProductSeries ID

[b]ProductSeries[/b]
ProductSeriesID Linking to products
And the Name of the ProductSeries
and a ProductRangeID

[b]ProductRange[/b]
ProductRangeID linking to ProductSeries
and the Name of the ProductRange
and a PrdouctGroupID


[b]ProductGroup[/b]
ProductGroupID linking to ProductRange
The Name of the ProductGroup

Now, thats pretty much how the database is set up

Say there are 10 Items under ProductGroup
Each item in ProductGroup has 10 items Under it from ProductRange

and Each ProductRange has an Item under it from ProductSeries

What I want to do is have a drop down box
That when you select a ProductGroup, A Selection box populats with ProductRange information
WHere the ProductGroup ID is the same as selected

now
TO have an array for each one could be a bit heavy
and to run a query for each ProductSeries will be heavy

SO what I am asking is the best way to get all the information for the database in arrays to get this to work

Just an added note,
Final figures at the moment, and this could go up
There are 196 Product Series
29 ProductRanges
12 Product Groups




Link to comment
https://forums.phpfreaks.com/topic/30623-what-a-load-of-arrays/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.