Click here to Skip to main content
12,297,814 members (55,337 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: PHP MySQL
I am making a website of a resturant.
in database I have created two tables
1-food(id,food_name,cat_id(F.K),)
2-category(cat_id,cat_name)

I want to display the category in navigation bar and on clicking the category it has to show the respected food that comes under the category.

example I have the following entries in my table
food_name=Zinger Burger,Chicken Burger,Sea Food
cat_name=FastFood,Fish


I have to show the category on menu bar and on clicking the fastfood it shows the zinger and chicken burger.
Posted 6-Jul-12 2:38am
Comments
Sandeep Mewara 6-Jul-12 9:10am
   
Ok. And the issue is? You forgot to ask question.
_Zorro_ 6-Jul-12 11:49am
   
Yep... what's the question?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160525.2 | Last Updated 6 Jul 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100