[eluser]mddd[/eluser]
There are multiple things going on here.
First, noctrum is correct: you can't have an array containing duplicate keys.
Second, yes the input for the form_dropdown is as simple array, like
Code:
$form_values = array(
'nl' => 'Netherlands',
'be' => 'Belgium',
'de' => 'Germany'
);
The problem here is that you are creating the two dimensional array yourself! You are adding options, but each option is an array!
Code:
$options[] = array( .... );
You should use something like
Code:
foreach ($query->result() as $row)
{
$options[ $row['your_key_value'] ] = $row['your_display_value'];
}
Then the result is a simple array like shown above.