Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Programming Help > PHP Programming Help

PHP Programming Help Post any question relating to PHP Programming here and hopefully someone can help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2008-07-03, 03:40 PM
Junior Member
 
Join Date: Jul 2007
Posts: 3
kirstyburgoine is on a distinguished road
Default php menu

Hi,
I'm trying to do something in PHP that is far more complicated than I have attempted before.

I have a navigation system that uses the jquery accordian plugin to show and hide the secondary navigation. I want to convert this to php so that when I click on the top level menu it shows the right secondary navigation.

I've set up 2 tables in phpmyadmin. One is prod_cat_01 which contains:
cat_ID
name
active (this is ENUM so that later on customers can switch off categories)

The other is products which contains:
prod_ID
cat_ID
prod_name
description
active

My HTML for the menu looks like this:
HTML Code:
<div id="navigation">
<ul>
<li><a href="#" class="head">Feeding Range</a>
<ul>
<li><a href="products.php?">Big Daddy Pots</a></li>
<li><a href="">Feeding Pots</a></li>
</ul>
</li>
</ul>
</div>
What I want to do is display prod_cat_01.name in the top list and then when you click on that link it expands to display the nested list with all the products whose cat_ID in products match the cat_ID from prod_cat_01. Then when you click on the product name you are taken to a page with the details of that product on it.

The expanding menu works using jquery and a dummy link to trigger the expanding action.

Is this possible? Can someone talk me through it? I can get the categories to display and I can also do a simple link to a detail page but I don't seem to be able to combine all three.

Thanks
Kirsty
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.0 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.0 (a popular PHP IDE) and NuCoder 1.4 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Tags
links, menu, navigation, php, secondary navigation

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:50 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.