Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 30. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Simple Question

phpMyEdit Configuration     Simple Question
Odoslať novú tému   Odpovedať na tému    
 
tbes     Založený: 18.06.2008   Príspevky: 2  
Príspevok 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  
Príspevok 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
Príspevok 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    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov