| Index
» Projekty
» phpMyEdit
» Fórum
» Need help urgently with multiple table join |
 |
dechtakar
Založený: 09.02.2004
Príspevky: 1
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
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
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
|
|
|
|