» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > MySQL Forums

MySQL Forums Share Your Ideas and Tips about MYSQL. Ask questions about MYSQL. Table Design and Much More...

Reply
 
Thread Tools Display Modes
  #1  
Old 08-22-2006, 01:28 PM
paranoid paranoid is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
paranoid is on a distinguished road
Default Table Design for Related Links

Hello members

I am running into an issue on a table design.

Given:

Two tables: Section Headings & Section Links

Section Headings has sh_id & sh_title as columns (fields)

Section Links has sl_id, sl_text, sl_title, sl_url and sh_id (as a foreign key)


Currently:

I toss SQL the sh_id and have it return/format all of the section links under that particular heading.


Where I am Stuck:

I would like to have a series of related links underneath the section links. However, I am not sure how to utilize the data I already have entered into the database to make this happen. Ideally, I would like to be able to toss a script a single ID and have it return all the links similar to how I have the section links set up.

My original thought was to put in another foreign key (relatedLinks_id), but that doesn't work since some of the -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 08-22-2006, 01:30 PM
ember ember is offline
OSP Starters
 
Join Date: Mar 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ember is on a distinguished road
Default

Do you want links related to links or links related to sections? and if A is related to B, is B automatically related to A?

maybe a few rows of sample data? -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
guidelines for posting and exchanging links qwerty Link Building 5 03-04-2007 10:58 AM
unable to add posts to a phpbb table after moving servers. tanny MySQL Forums 3 02-13-2007 02:44 PM
Hostbreak Offers Web Design Services outsourcingplans Web Hosting News 0 01-19-2007 02:54 AM
Lunarpages Adds Web Design and Development Services outsourcingplans Web Hosting News 1 12-10-2005 07:40 AM
Web Design Library Moved to Webdesign.org outsourcingplans Web Hosting News 0 11-29-2005 01:52 PM


All times are GMT. The time now is 10:33 AM.