Welcome Guest, Not a member yet? Register   Sign In
sub-categories and sub-subcategories on a associative array with CI
#10

[eluser]markup2go[/eluser]
MEM can you share the model you're using to build that array? I'm having the same difficulty figuring how this functionality is SUPPOSED to be done. Can anyone add any tips or examples? I'm building a small online shop that requires unlimited subcategories as well as a many-to-many relationship between categories and products.

Here is how my categories table is setup:

Table 1: Categories
Columns: id, name, parent_id

In addition, here is my products tables

Table 2: Products
Columns: id, name, price, description (etc etc)

Table 3: Categories_Products
Columns: id, categories_id, products_id

Thanks for the help it is greatly appreciated.


Messages In This Thread
sub-categories and sub-subcategories on a associative array with CI - by El Forum - 09-10-2009, 10:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB