dianacastillo
Založený: 11.01.2011
Príspevky: 4
Zaslal: 2011-01-11 11:23
Návrat hore
Odpovedať s citátom
|
is there a way for the user to see yes or no as the options but it actually saves a 0 or 1 to the database?
thank you
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2011-01-12 14:57
Návrat hore
Odpovedať s citátom
|
| Kód: |
$opts['fdd']['hidden'] = array(
'default' => 0,
'input' => '',
'maxlen' => 1,
'name' => 'Hidden',
'options' => 'ACPVD',
'select' => 'D',
'sqlw' => 'TRIM("$val_as")',
'values2' => array('0' => 'No', '1' => 'Yes'),
'sort' => true
);
$opts['fdd']['deleted'] = array(
'default' => 0,
'input' => '',
'maxlen' => 1,
'name' => 'Deleted',
'options' => 'ACP',
'select' => 'D',
'sqlw' => 'TRIM("$val_as")',
'values2' => array('0' => 'No', '1' => 'Yes'),
'sort' => true
); |
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|