technorocker
05-18-2007, 11:41 AM
Hi,
I'm new here on the forums, so hello everyone!! :)
Ok on to my problem. I have been asked to develop a directory website which will have a list of businesses. I have created a 3 tier system before (Directory > Sub Category > Business) however, I now need to be able to create multiple levels in the directory.
So for instance it could be: Directory > Plumbers > Business Name OR Directory > East Anglia > Norfolk > DJ's > Mobile DJ's
I have been given advice on this by creating two tables. One for the Categories and one for the listings. See below:
Catgeories
ID | ParentID | Name
Listings
ID | Name | Business ect.....
I'm now really lost with this and my brain is now mashed up and then bin fried.
Can anyone shed some light on this please? I'll give you a cookie :p
Thanks in advance,
Adam
I'm new here on the forums, so hello everyone!! :)
Ok on to my problem. I have been asked to develop a directory website which will have a list of businesses. I have created a 3 tier system before (Directory > Sub Category > Business) however, I now need to be able to create multiple levels in the directory.
So for instance it could be: Directory > Plumbers > Business Name OR Directory > East Anglia > Norfolk > DJ's > Mobile DJ's
I have been given advice on this by creating two tables. One for the Categories and one for the listings. See below:
Catgeories
ID | ParentID | Name
Listings
ID | Name | Business ect.....
I'm now really lost with this and my brain is now mashed up and then bin fried.
Can anyone shed some light on this please? I'll give you a cookie :p
Thanks in advance,
Adam