MainCategory and Subcategories Product Display Problem

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default MainCategory and Subcategories Product Display Problem

    Dear all,

    I am experiencing a complicated problem regarding product display in a page of
    an e-commerce website. The situation is as follows: there are two tables: one
    hosts the categories and the subcategories of the products and the other one
    hosts the products. The table 1 contain a field, which is called "CatFatherID"
    amongs others. This particular field differentiates the main categories with
    the subcategories like this: when CatFieldID is 0, then the category is a main
    category. When it contains a number, then this category is a subcategory of a
    maincategory with the corresponding ID. The Product Table contains the products
    with CatID the catID of the subvcategories.

    What I would like to do is to find a way to display all the products of the
    main category (that belong to its subcategories).

    I find it difficult. Could you please help me?

    Thank you in advance,

    Lazaro

    DigiWolf Guest

  2. Similar Questions and Discussions

    1. Product Categories & Subcategories
      I want to create a category menu that allows any number of levels of subcategories, that is, you can have a parent category and that category can...
    2. Need help in dynamic scrollbar for product thumb display
      Hi, Am working on a flash based website. I need help in collection section where the client wants to diplay thumbnails of the products on the left...
    3. SBS Volume Product Key Not Required Problem Please Help
      "Joel Kaminsky" <jkaminsky@iitri.org> wrote in message news:%23CK6BtXTEHA.1232@TK2MSFTNGP09.phx.gbl... Joel, Did you follow the advice you...
    4. [PHP] Subcategories in php
      I'd use the parent category id as a hidden field in the form when adding a sub category. Here is a complete script that contains all the code you...
    5. Product activation when you've lost your Product ID sticker
      You will not be able to activate at all by phone or internet with a downloaded key. -- Larry Samuels MS-MVP (Windows-Shell/User) Associate...
  3. #2

    Default Re: MainCategory and Subcategories Product Display Problem

    Lazaro

    If the data is in several tables then you will need to create a SQL join to
    bring them together. The simplest way to do this is in the database itself.
    If you are using Access then simply create a query and add the tables. Then
    use this query as the source for your recordset on the page.

    --
    Regards

    Paul Whitham
    Macromedia Certified Professional for Dreamweaver MX2004
    Valleybiz Internet Design
    [url]www.valleybiz.net[/url]

    Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    [url]www.macromedia.com/support/forums/team_macromedia[/url]

    "DigiWolf" <webforumsuser@macromedia.com> wrote in message
    news:d5vuvl$750$1@forums.macromedia.com...
    > Dear all,
    >
    > I am experiencing a complicated problem regarding product display in a
    page of
    > an e-commerce website. The situation is as follows: there are two tables:
    one
    > hosts the categories and the subcategories of the products and the other
    one
    > hosts the products. The table 1 contain a field, which is called
    "CatFatherID"
    > amongs others. This particular field differentiates the main categories
    with
    > the subcategories like this: when CatFieldID is 0, then the category is a
    main
    > category. When it contains a number, then this category is a subcategory
    of a
    > maincategory with the corresponding ID. The Product Table contains the
    products
    > with CatID the catID of the subvcategories.
    >
    > What I would like to do is to find a way to display all the products of
    the
    > main category (that belong to its subcategories).
    >
    > I find it difficult. Could you please help me?
    >
    > Thank you in advance,
    >
    > Lazaro
    >

    Paul Whitham TMM Guest

  4. #3

    Default Re: MainCategory and Subcategories Product DisplayProblem

    Unfortunately, I have tried to join the tables but it seems to be very diffuclt for me. Could anyone please help me? I have provide the complete table structure if needed. Thank you in advance.
    DigiWolf Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139