[eluser]piker[/eluser]
How to convert database query to
options i form_dropdown list ?
I always get array of array
I have
in controller
Code:
$data['options'] = $this->db->get('table');
$this->load->view('welcome_message',$data);
in views
Code:
<html>
<form>
<?=form_dropdown('bleble',$options);?>
</form>
</html>
Thanks
piker