Technology, Web & Business Forum

You are here: Technology, Web & Business Forum : Web Development : Programming : PHP and MySQL help


Welcome to the Technology, Web & Business Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.


Programming Discuss programming languages such as .NET, PHP, PERL, ASP, ColdFusion, C++


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-31-2009
Junior Member
 
Join Date: Jan 2009
Posts: 3
Default PHP and MySQL help

hello

I've got two tables that I want to be connected(let's call the A and B), so I made a third table. In table A and B i got two primary keys a_id and b_id. Now I create the third table named AB. Inside that I create ab_id as primary and two foreign keys with the names a_id and b_id..... all is all good right now, working fine.

Now to the issue, what should I write in the code to get example ab_id 1 to show all it's information. And by all information I mean all the info that a_id and b_id have in their tables. You get what I'm looking for here?

Does this require some kind of JOIN?
Reply With Quote
  #2 (permalink)  
Old 05-05-2009
Junior Member
 
Join Date: May 2009
Posts: 3
Default




Protect and License your PHP scripts and website
  • New obfuscated bytecode execution engine for maximum code protection
  • Enhanced code obfuscation features
  • Innovative encryption feature for all types of file, such as templates and XML
  • Purchase with the Package Foundry installer creator and save $100!
  • Optional powerful license file creation system
  • Updated Windows GUI for release 6.5.
  • ===============================
  • Find a florist in Phoenix
    baby shower
Reply With Quote
  #3 (permalink)  
Old 05-19-2009
Member
 
Join Date: Apr 2009
Posts: 63
Default

I've got two tables that I want to be connected(let's call the A and B), so I made a third table. In table A and B i got two primary keys a_id and b_id. Now I create the third table named AB. Inside that I create ab_id as primary and two foreign keys with the names a_id and b_id..... all is all good right now, working fine.

Now to the issue, what should I write in the code to get example ab_id 1 to show all it's information. And by all information I mean all the info that a_id and b_id have in their tables. You get what I'm looking for here?

Does this require some kind of JOIN?
_____________________
get out of debt
invoice factoring
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

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 -5. The time now is 06:51 PM.