I have following code:
echo form_radio($arr_gen_fem,
($btn_value == 'Editar') ? ( isset($row_开发者_Go百科new_person) ? $row_new_person->gender: set_value('gender')) : '');
I need display the value from database for edit registry, but this not display. The problem is only with radio buttons.
try putting your condition result into a variable then add the variable as a param.
$result = ($btn_value == 'Editar') ? ( isset($row_new_person) ? $row_new_person->gender: set_value('gender')) : '';
echo form_radio($arr_gen_fem, $result);
精彩评论