I want to validate or show the radio button checked,if some value is present in database. Please refer my views code,
<input type="radio" name="bothadvandlor" value="1" <?php if($advs->is_checked == "1");?>checked="checked"<?php endif;?> class="advs"/> Show Google Ads<br/>
<input type="radio" name="bothadvandlor" value="2" <?php if($advs->is_checked == "2");?>checked="checked"<?php endif;?> class="advs"/> Others
The above is the form i tried,but i am getting the syntax error message like "ErrorException [ Parse Error ]: syntax error, unexpected T_ENDIF
" .
Need help to solve this.