Question: how to get checked checkbox value from database in codeigniter?
Answer: php if(count($course) > 0): foreach($course as $row):?> <input class="form-check-input" type="checkbox" id="inlineCheckbox1" name="course[]" value="<? = $row ?>" <? php if($row == 'course-name'){ echo 'checked="checked"';}?> >