Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Problem Help Me..
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem Help Me..

 Post Reply Post Reply Page  <12
Author
cr*piecorn View Drop Down
Senior Member
Senior Member


Joined: 24 July 2002
Location: Belgium
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote cr*piecorn Quote  Post ReplyReply Direct Link To This Post Posted: 18 April 2003 at 4:39pm

mmzz ? your site sais , wwg forums , the fastest forums ... well it's a good forum but most def not fastest , take for example the .net forum on str8dogs site , it's way faster .. and forums like invision,..

Ruben Schepers
http://www.crapiecorn.be
Back to Top
Bluefrog View Drop Down
Senior Member
Senior Member


Joined: 23 October 2002
Location: Korea, South
Status: Offline
Points: 1701
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bluefrog Quote  Post ReplyReply Direct Link To This Post Posted: 21 April 2003 at 4:30pm

Originally posted by michael michael wrote:

...

Cat_ID int
Cat_Nm varchar(xx)
SubCatOf_ID int
That way, if it is a main category it has NULL as SubCatOf_ID so you display it, the you loop through the values that have SubCatOf_ID = Cat_ID and so forth. This way you save space and can have unlimited subcategories.

...

This might be a bit late, but...

When implementing what Michael posted above, you can get an unlimited depth as well.

e.g. Programs >> Utilities >> Compression >> Non-Lossey >> Command Line >> ETC...

What you do is keep the top level as NULL and for each sub or sub-sub category you add it to one or more categories or sub-categories. Depending upon what sort of speed you want, either an SP or an SP and a custom component would work best. You can insert all multiple entries for each sub-cat - i.e. the sub-cat belongs to sub-cat1, sub-cat3, and sub-cat14. Also add it to sub-cat5 if sub-cat14 belongs to sub-cat5. That creates a lot of records though. A custom component would let you do that ordering much faster than ASP would. So when you look through sub-cat5, you get it because sub-cat14 is a subset of sub-cat5 and your item belongs to sub-cat14. This can get rather messy though. A semi-real-time approach may work better, i.e. write an admin page that publishes (writes a file, e.g. my_list_x.inc) an include only when you choose to update it. If you are adding things administratively, then this may be a better approach than the mess I described above. The end result is that you do your query once a day versus whenever a new visitor request the page.

Hope that wasn't too much of a tangent...

 

 

Back to Top
farrukh View Drop Down
Groupie
Groupie
Avatar

Joined: 10 May 2002
Location: Pakistan
Status: Offline
Points: 147
Post Options Post Options   Thanks (0) Thanks(0)   Quote farrukh Quote  Post ReplyReply Direct Link To This Post Posted: 27 April 2003 at 10:51pm
 nice help guy but i have to remake my database.

or what i do is i have created the table Category >> Components >> and then Sub_Categories.

in Sub_Categories there are Sub_Cat_ID, SubCategoryName, Category_ID(from Category table), Component_Id(from component table) and then i introduce a new field by referencing your advice SubCategoryof(holds a Sub_Cat_ID).

i think by this way it is possible to create unlimited subDirectories.

Please FeedBack If i was wrong
i have collected some nice avatars (37) and smileys (227) here you can download
http://www24.brinkster.com/webmastertool/download.html
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.