[eluser]Brayan[/eluser]
Code:
foreach ($forn->result()as $dados )
$options[] = array(
$dados->ID => $dados->NAME
);
echo form_dropdown('fornec',$options);
this code produce many <optgroup> with values that that start from 0 and each line it increments
why is doing this ?
thanks