Results 1 to 8 of 8
November 18th, 2005, 01:47 PM #1PHP Menu Script
I finished Dirk's Bulletproof tutorial and it left me wondering how to handle the multilevel categories so I'm trying to blend a menu script with his ideas.
November 18th, 2005, 02:50 PM #2
I worked around this by using a parent column in my table. (I actually have two tables, one for categories and then one for products.)
All categories and subcategories are listed in the category column with a different id. Then in the parent column the subcategories are related to it's main category.
Something like this:
Clothing CatId is 1 Parent category is 0
Mens CatId is 2 Parent category is 1
Womens CatId is 3 Parent cateogry is 1
and so on...I disagree with Kay Jewelers. I would bet on any given Friday or Saturday night more kisses begin with Bud Lite than Kay.
November 18th, 2005, 04:18 PM #3
Not sure if this the best way, but what I do run queries for my categories and put them into each page (I have about 6 pages per merchant so this isn't a big deal). My query uses "select DISTINCT PriCat (my primary category name) from TableName. This will only show each category name once. Then I use an include file to display the categories on each page and they link to a category page.
November 18th, 2005, 11:37 PM #4
November 19th, 2005, 03:35 AM #5
That can be a "cool" feature, but don't forget to use a plain HTML version of the same categories so the search engine bots can spider them.
- ScottHatred stirs up strife, But love covers all transgressions.
January 4th, 2006, 01:49 PM #6
Agreed. Do yourself a favor and use Lynx to view your site while you're playing with it.
If you use Linux, it's already there. Windows users can get a copy from one of the links on this page: http://www.fdisk.com/doslynx/lynxport.htm
If you can't make sense of it with Lynx, the SE robots won't, either.
January 4th, 2006, 02:00 PM #7Agreed. Do yourself a favor and use Lynx
January 4th, 2006, 02:39 PM #8
That's where it's located in Debian..
You can do search for it the slow but reliable way by doing "find / -name lynx" from command line.
Be warned, it'll spit out a bunch of 'permission denied' warnings at you if done as an ordinary user..
By tsmgroup2 in forum Programming / Datafeeds / ToolsReplies: 1Last Post: June 26th, 2007, 12:18 AM
By mobilebadboy in forum Programming / Datafeeds / ToolsReplies: 3Last Post: April 6th, 2006, 09:05 AM
By oscar in forum Programming / Datafeeds / ToolsReplies: 15Last Post: June 29th, 2004, 04:15 PM
By SpikeDo in forum Programming / Datafeeds / ToolsReplies: 1Last Post: September 17th, 2003, 07:00 AM