Categories and Subcategories ISSUE |
[eluser]Unknown[/eluser]
I am trying to make a restaurant menu and I have to have **Categories** and **Subcategories**, so I created the following tables: Table: Categories ID NAME Table: Subcategories ID NAME PRICE DESCRIPTION CATEGORIES_ID I am using DataMapper and the problem I having with the code below is that the result of the FOREACH LOOPS I am getting is that only the LAST Subcategory is showing, where there are few more entries. So I have 2 entries each in the tables for SubCategories and the result of the code is giving me this: Quote:ALCOHOL -> VODKA and it needs to be Quote:ALCOHOL -> VODKA, AFTERSHOCK, Code: public function index() THIS IS THE VIEW: Code: {categories}
[eluser]www.sblog.in[/eluser]
You can get an idea http://www.webtuts.in/infinite-dynamic-m...and-mysql/ |
Welcome Guest, Not a member yet? Register Sign In |