| Index
» Projekty
» phpMyEdit
» Fórum
» Simple Question |
 |
tbes
Založený: 18.06.2008
Príspevky: 2
Zaslal: 2008-06-18 16:34
Návrat hore
Odpovedať s citátom
|
Hi I couldn't find an answer.
I have joined two tables, into drop down list, and it populates fine, however, because most of my entries are the same, it duplicates all the way down the list, including empty entries.
What is the easiest way to filter out duplicates?
$opts['fdd']['landlordscity'] = array(
'name' => 'Landlords City',
'select' => 'D',
'maxlen' => 64,
'nowrap' => false,
'sort' => true
);
$opts['fdd']['landlordscity']['values']['table'] = 'contacts';
$opts['fdd']['landlordscity']['values']['column'] = 'ID';
$opts['fdd']['landlordscity']['values']['description']['columns'][0] = 'city';
$opts['fdd']['landlordscity']['values']['description']['divs'][0] = ' ';
$opts['fdd']['landlordscity']['values']['description']['columns'][1] = 'province';
Thanks in Advance
|
tbes
Založený: 18.06.2008
Príspevky: 2
Zaslal: 2008-06-23 20:52
Návrat hore
Odpovedať s citátom
|
No ideas?
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2008-07-08 02:26
Návrat hore
Odpovedať s citátom
|
the main table has the same lines or the joined table ?
you can use 'join' option
http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.input-restrictions.html#AEN1011
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|