Welcome Guest, Not a member yet? Register   Sign In
set_radio function
#4

In your EditarCaso view, replace lines 114-118 with:
PHP Code:
<td>&nbsp
    <?= 
form_radio('brote','si',set_radio('brote','si',$caso[0]->TipoEvento == 'si'));?>SI&nbsp;&nbsp;
    <?= form_radio('brote','no',set_radio('brote','no',$caso[0]->TipoEvento == 'no'));?>NO
</td> 

Is the TipoEvento property a varchar field that can hold the value 'si' or 'no', or is it a boolean field (0 or 1)?
Reply


Messages In This Thread
set_radio function - by danielcr_2018 - 02-12-2018, 11:30 AM
RE: set_radio function - by Wouter60 - 02-12-2018, 12:25 PM
RE: set_radio function - by danielcr_2018 - 02-13-2018, 06:49 AM
RE: set_radio function - by Wouter60 - 02-13-2018, 12:17 PM
RE: set_radio function - by InsiteFX - 02-14-2018, 05:19 AM
RE: set_radio function - by danielcr_2018 - 02-14-2018, 01:50 PM
RE: set_radio function - by InsiteFX - 02-15-2018, 04:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB