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

phpMyEdit General     Conditional Lookup
Odoslať novú tému   Odpovedať na tému    
 
Paulinho Cé     Založený: 22.02.2013   Príspevky: 3  
Príspevok Zaslal: 2013-03-12 13:01
Návrat hore  Odpovedať s citátom     

Kód:

$opts['fdd']['cidade'] = array(
'name'     => 'Cidade',
'select'   => 'T',
'maxlen'   => 30,
'sort'     => true,
'values'   => array(
     'table' => 'cidades',
     'column' => 'nome',
   )
);
$opts['fdd']['cod_cidade'] = array(
'name'     => 'Cod cidade',
  'select'   => 'T',
'maxlen'   => 11,
'sort'     => true,
'values'   => array(
     'table' => 'cidades',
     'column' => 'cod_cidade',
  'filters'     => "cod_cidade = ???????"
)
);


?????? = $opts['fdd']['cidade'] = array() (item selected)


I want to select the city in the first field and want to appear only the
city code selected in the second field.
Where I capture the value of the selection of the first field?
Filter is the correct way to display the corresponding code in the second
field?
Please give me some help and I will be immensely grateful.

Thank you and congratulations
Paulo
From Brazil

 
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