Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to show category name

Status
Not open for further replies.

shop73

IS-IT--Management
May 13, 2007
48
0
0
BA
I have an table with this fields: cat_id, cat_parent_id and cat_name. I have vertical menu with this items! When I click menu items Audio I have "sample.php?c=1" etc...

Example:

cat_id cat_parent_id cat_name
1 0 audio
2 0 video
3 1 sound
4 2 video spot

I tried with recordset:

SELECT *
FROM multimedija
WHERE multimedija.cat_id = colname
ORDER BY cat_name ASC
-------------------------------------
colname = colname, 0, $_GET['c']
-------------------------------------

This show only one category, but I want to show main category (audio) and subcategory (sound) in same page!?

Help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top