| Index
» Projekty
» phpMyEdit
» Fórum
» [newbie question] drop lists, relations and display |
 |
hbernard
Založený: 23.03.2003
Príspevky: 159
Bydlisko: FRANCE
Zaslal: 2003-11-19 22:27
Návrat hore
Odpovedať s citátom
|
Hum, maybe you should post your code if you want meaningful advices ;-)
you certainly have (in the loc_id field definition
| Kód: |
...
'values' => Array('table'=>'name_of_table_b', 'column' => 'loc');
... |
but you should have :
| Kód: |
...
'values' => Array('table'=>'name_of_table_b', 'description' => 'loc', 'column'=>'id');
... |
| WojtekS Napísal: |
Greetings,
phpMyEdit is a very nice piece of software to start with :)
The problem/question I have is the following: when adding/changing a record, one of the fields is a drop-down menu which is dynamically filled in with values from another table (loc_id in the details below). Looks great, all entries are there. The table I am trying to update looks like this:
---------------------
TABLE A
---------------------
id (int)
loc_id (int) -> this is in realtion with id from table B
someone (varchar)
---------------------
---------------------
TABLE B
---------------------
id (int)
loc (varchar)
---------------------
The problem is that when I update such a record I would like to have the loc_id linked to the element of the drop-down list I have chosen to be inserted (which is not the case). I am sure there is an obvious way and it is just my lack of knowledge which is preventing me to finish :)
Any help would be appreciated. Thanks. |
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2003-11-19 22:39
Návrat hore
Odpovedať s citátom
|
as is written in
http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.input-restrictions.html#AEN682
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|