Displaying conditional records from databse in Tabs in Codeigniter |
-
aafreen
Newbie
-
Posts: 1
Threads: 1
Joined: Sep 2016
Reputation:
0
Hi there,
Here is what i want to do
i have 2 tables
Items: Item_id, price, cat_id, name, slug, pic_url
Item_id Price Cat_id Name Slug Pic_url
1 12 1 Chicken meal Chi_meal url to its picture in harddrive
2 10 1 Fish Meal Fish_meal url to its picture in harddrive
3 7 2 Spring rolls Srolls url to its picture in harddrive
4 8 3 Caeasars Salad Csalad url to its picture in harddrive
5 6 3 Green Salad Gsalad url to its picture in harddrive
6 6 2 Tazaki Shrimp Tshrimp url to its picture in harddrive
7 10 2 Buffalo Chicken Bchik url to its picture in harddrive
8 3 4 Medim Fries Mfry url to its picture in harddrive
Cateogry: Cat_id, Cat_description
CAt_id CAt_desc
1 Main Meal
2 Appetizers
3 Salad
4 Sides
Now, i want to make a view, where these Categories are displayed in tabs. On selection of a tab, related Pic, url and price are displayed from item table
For example, If i select tab Main meal, only chicken meal and fish meal should be shown. If i select Salad tab, just ceasars and Green salad should show...
Appreciate all the help!
|
Messages In This Thread |
Displaying conditional records from databse in Tabs in Codeigniter - by aafreen - 09-28-2016, 08:32 AM
|