Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Utorok, 24. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Need help urgently with multiple table join

phpMyEdit Configuration     Need help urgently with multiple table join
Odoslať novú tému   Odpovedať na tému    
 
dechtakar     Založený: 09.02.2004   Príspevky: 1  
Príspevok Zaslal: 2004-02-09 08:37
Návrat hore  Odpovedať s citátom     

I have a database organized for a model UN like this:
- delegates, with id, last name, first name, delegation ID
- delegation: id, country id, committee id
- countries: id, country name
- committees: id, committee name

What I'd like to get PME to do is print out a list of delegates in this format: last name, first name, country, committee, and be able to sort the list by these referenced values. I also need to be able to edit using these referenced values in a dropdown menu for each entry. Using normal v5.3, all I can get are the delegation id numbers; same with using phpMyAdmin to try and do this.

I tried installing the code from the last post in this thread: http://opensource.platon.sk/forum/projects/viewtopic.php?t=103 into PME main class file in order to get this multi-table join to work, but my delegates.php script returns a blank page (without fiddling around with the delegates.php script). I'm not sure if I'm pasting the code into PME incorrectly (using Dreamweaver), misconfiguring the delegates.php script, or something else altogether.

I also know very little SQL, so I don't know how to go about getting the database to just spit out the information I need in some printable form. Any help would be greatly appreciated.

 
stefanl     Založený: 06.02.2004   Príspevky: 5  
Príspevok Zaslal: 2004-02-09 09:54
Návrat hore  Odpovedať s citátom     

Check out topic http://opensource.platon.sk/forum/projects/viewtopic.php?t=279 where I have posted a workaround to my initial question which sounds very similar to yours. Not sure this is *the* way to do it, but at least it works to the level I need.

 
hbernard     Založený: 23.03.2003   Príspevky: 159   Bydlisko: FRANCE
Príspevok Zaslal: 2004-02-09 19:10
Návrat hore  Odpovedať s citátom     

AFAIK, you can't currently do this by using phpMyEdit, mainly because you can't make custom joins. (say, you may only have join with main table, not join with already joined tables)

Patchs have been posted in bug #134.

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov