Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old November 4th, 2003, 03:22 AM
TylerNZ TylerNZ is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Balclutha, New Zealand
Posts: 4 TylerNZ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Display record from a linked table in mysql ...

Hi, I have a problem. I have created a MySql database and now I'm tryin to display the information thru PHP (created in Dreamweaver). Displaying data from a single table is easy. But how do you display data that is related to another table?

For example: I have a "members table" and a "meetings table" which holds all the memberID's that were present at a particular meeting. The meetings table holds the MemberID yet when I want to call the information, I want the Member's name to display, not the MemberID.

IS this easy? Thanks for your help!

Reply With Quote
  #2  
Old November 4th, 2003, 09:42 PM
sliver's Avatar
sliver sliver is offline
Moderator
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: WI, USA
Posts: 906 sliver User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 21 m 10 sec
Reputation Power: 2
Send a message via AIM to sliver Send a message via XFire to sliver
RE: Display record from a linked table in mysql ...

Your query should like something like:

select members.name, meetings.id from members, meetings where members.name=meetings.id

Should work, post again if it doesn't....

Reply With Quote
  #3  
Old November 5th, 2003, 01:51 AM
TylerNZ TylerNZ is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Balclutha, New Zealand
Posts: 4 TylerNZ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Display record from a linked table in mysql ...

thanks for the reply silver ... still seem to have be having issues. I don't really understand how all the coding works, as dreamweaver does most of it for you ( I guess I'm gunna have to learn it tho! ) ...

But maybe you know of a good relational database tutorial? mysql, php, dreamweaver?

Otherwise, maybe I could send you part of my php code? Then you have to know what my database tables are etc as well, right?

issues!

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > Display record from a linked table in mysql ...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT