onlyican Posted December 14, 2006 Share Posted December 14, 2006 HeyNow, this is going to be a bit confusingI have 4 MySQL Tables[b]Product[/b]Product information such as Product name, Dimensions EctANDA ProductSeries ID[b]ProductSeries[/b]ProductSeriesID Linking to productsAnd the Name of the ProductSeriesand a ProductRangeID[b]ProductRange[/b]ProductRangeID linking to ProductSeriesand the Name of the ProductRangeand a PrdouctGroupID[b]ProductGroup[/b]ProductGroupID linking to ProductRangeThe Name of the ProductGroupNow, thats pretty much how the database is set upSay there are 10 Items under ProductGroupEach item in ProductGroup has 10 items Under it from ProductRangeand Each ProductRange has an Item under it from ProductSeriesWhat I want to do is have a drop down boxThat when you select a ProductGroup, A Selection box populats with ProductRange informationWHere the ProductGroup ID is the same as selectednowTO have an array for each one could be a bit heavyand to run a query for each ProductSeries will be heavySO what I am asking is the best way to get all the information for the database in arrays to get this to workJust an added note,Final figures at the moment, and this could go upThere are 196 Product Series29 ProductRanges12 Product Groups Link to comment https://forums.phpfreaks.com/topic/30623-what-a-load-of-arrays/ Share on other sites More sharing options...
JasonLewis Posted December 14, 2006 Share Posted December 14, 2006 do you want the page to refresh and display the information. and i dont see what the problem with arrays are. they are useful for grouping the relitive information... Link to comment https://forums.phpfreaks.com/topic/30623-what-a-load-of-arrays/#findComment-141088 Share on other sites More sharing options...
onlyican Posted December 14, 2006 Author Share Posted December 14, 2006 I was hoping to do it without page refreshbut there is too much data to do that Link to comment https://forums.phpfreaks.com/topic/30623-what-a-load-of-arrays/#findComment-141135 Share on other sites More sharing options...
JasonLewis Posted December 15, 2006 Share Posted December 15, 2006 you cant use php to update a page without the browser refreshing. You would need to use javascript... Link to comment https://forums.phpfreaks.com/topic/30623-what-a-load-of-arrays/#findComment-141467 Share on other sites More sharing options...
TEENFRONT Posted December 15, 2006 Share Posted December 15, 2006 carnt you just call all the data into arrays on pageload and use linked dropdowns?shouldnt be a problem with the arrays holding that much info.. Link to comment https://forums.phpfreaks.com/topic/30623-what-a-load-of-arrays/#findComment-141470 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.