| Index
» Projekty
» phpMyEdit
» Fórum
» Use of value2 array |
 |
paul.mac
Založený: 26.08.2008
Príspevky: 5
Zaslal: 2008-08-27 16:24
Návrat hore
Odpovedať s citátom
|
Hi,
I've used the value2 array to define a drop down selection for a field in a database as follows:
$opts['fdd']['raci1']['values2'] = array(
'' => 'Please select...',
'R' => 'Responsible',
'A' => 'Accountable',
'C' => 'Consult',
'I' => 'Inform');
However sometimes I want it to display the full word (view single record) and other times I want it to display just the single character (view full database) that gets stored in the database, also when the row of data gets displayed in View mode I want it to display the the full word except when it is 'Please select...' when I want it to display a blank cell.
How do I do this?
Thanks
Paul
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|