Welcome Guest, Not a member yet? Register   Sign In
subcategory solution
#6

[eluser]Twisted1919[/eluser]
The correct database schema for categories would be a single table referencing itself . So you will have category_id and parent_id , and you can go how deep you want with this . But that's not the point of the thread , i think the O.P was just in doubt how the controller should look like , and a good starting point is my first post .
L.E: @Tominator , maybe you should take a look at database normalization, your structure is not as good as it must be in order to maintain a database in easy steps .


Messages In This Thread
subcategory solution - by El Forum - 04-17-2010, 05:12 AM
subcategory solution - by El Forum - 04-17-2010, 07:50 AM
subcategory solution - by El Forum - 04-17-2010, 11:48 AM
subcategory solution - by El Forum - 04-17-2010, 12:04 PM
subcategory solution - by El Forum - 04-17-2010, 12:53 PM
subcategory solution - by El Forum - 04-17-2010, 01:34 PM
subcategory solution - by El Forum - 04-17-2010, 01:39 PM
subcategory solution - by El Forum - 04-17-2010, 01:42 PM
subcategory solution - by El Forum - 04-17-2010, 01:53 PM
subcategory solution - by El Forum - 04-17-2010, 02:55 PM
subcategory solution - by El Forum - 04-17-2010, 05:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB