I'm trying to retrieve a string from a form dropdown field in a update page from my database, view below.
$option = array(NULL => 'Selecione uma categoria');
foreach ($categories_list->result() as $category):
$option[$category->categoryID] = $category->categoryTitle;
endforeach;
echo form_dropdown('categoryname', $option, set_value('categoryname', $post->categoryTitle));
However, dropdown does not display the bank string. Could someone help me?