Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-27-2007, 04:11 PM
WebProWorld Member
 

Join Date: Nov 2006
Location: Seattle
Posts: 59
shannonlp RepRank 0
Default PHP MySQL Question

Site: Craft Cruises – Group Cruises‚ Knitting retreats‚ Women’s Travel and more

I am trying access information from 3 tables. Table 1 is brand information, table 2 is product information, table 3 is an intersection table holding the ID's of tables 1 and 2 and a primary key.

I have created a query that will retrieve the information as follows:

col1: brand ID
col2: brand name
col3: product name

The problem I have is that I am trying to populate a menu seen on the left with the information retrieved.

I want to get the brand name in the primary link and if a product exist associated to the brand the create the sub links until all links are created.

I need to change the information from the result array to eliminate duplicate brands and loop through the sub links without duplication.

I am sure this is clear as mud. Any help would be appreciated.
__________________
Web Designer and Custom Spider Creator
eCommerce and shopping cart information

Last edited by shannonlp : 11-27-2007 at 04:15 PM.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum


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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL Question shannonlp Web Programming Discussion Forum 13 07-30-2007 04:09 PM
Another PHP/MySQL Image question ackerley1 Database Discussion Forum 6 10-03-2006 05:12 AM
PHP / MySQL question. steve0 Web Programming Discussion Forum 2 05-29-2006 04:47 PM
MySQL Question profilesite Database Discussion Forum 5 11-17-2004 08:34 AM
mysql question 4u Database Discussion Forum 2 11-16-2004 11:55 PM


Search Engine Optimization by vBSEO 3.2.0