| Index
» Projekty
» phpMyEdit
» Fórum
» newbie multiple table lookup |
 |
greg
Založený: 08.03.2004
Príspevky: 2
Zaslal: 2004-03-08 15:26
Návrat hore
Odpovedať s citátom
|
Hi and thanks for the amazing piece of work!
I am running a SQL db of schools directory. I have a table for the schools and 3 other simple tables (one for language, one for accreditation and one for program) I join them in 3 other table named joint_accr, joint_lang and joint_progr with the id of the school and the id of the language or accr or progr. I would like to include this 3 options in dropdown boxes in the school.php created with phpmyedit.
I've tried this:
| Kód: |
$opts['fdd']['name_org']['values']['table'] = 'accreditation';
$opts['fdd']['name_org']['values']['column']= 'name_org';
$opts['fdd']['name_org']['select'] = 'D';
|
but it makes an error
| Kód: |
MySQL error 1054
Unknown column 'PMEtable0.name_org' in 'field list'
|
I am not an expert in SQL and however simple it seems, I'd appreciate a little help :)
Thank you!
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2004-03-08 16:22
Návrat hore
Odpovedať s citátom
|
$opts['fdd']['name_org'] should be something like $opts['fdd']['id_org'] . it is the name of the field in your schools table, which contains the id for name generation.
|
greg
Založený: 08.03.2004
Príspevky: 2
Zaslal: 2004-03-09 02:03
Návrat hore
Odpovedať s citátom
|
Michal... you rule! ;)
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|