| Index
» Projekty
» phpMyEdit
» Fórum
» table relations / associations |
 |
tomabroad
Založený: 26.02.2010
Príspevky: 2
Zaslal: 2010-02-26 19:46
Návrat hore
Odpovedať s citátom
|
hi, i have two tables, both are related to each other with a N<>N relation, meaning a Many to Many association (TableA and Table B).
Now, i created the TableC, which is supposed to hold the two keys (tableA_id & tableB_id), but how do i create / get some dropdowns / selectoptions working? do i need to hack that manually?
thx
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2010-02-27 03:32
Návrat hore
Odpovedať s citátom
|
phpMyEdit does not work with tables using two columns to create the unique key.
|
tomabroad
Založený: 26.02.2010
Príspevky: 2
Zaslal: 2010-03-01 15:07
Návrat hore
Odpovedať s citátom
|
ok, so whats the best approach here? i could drop the auto_id in the join table and just store both of the foreign_keys. but how would i reflect that and include as selection-options in phpmyedit?
thx
|
paddywwoof
Založený: 25.02.2010
Príspevky: 7
Zaslal: 2010-03-02 09:37
Návrat hore
Odpovedať s citátom
|
I can't tell exactly how you inted to use your tables. With phpMyEdit you will have to insert new records in tblA, tblB and tbleC on their own (i.e. I don't know how you can use it to add linked records to more than one table at the same time).
If the records can be inserted into tblA and B independently then joined afterwards by inserting records in to tblC you can do this with the standard dropdown.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|