Hi, I am a complete novice to codeigniter and have no idea how to handle this
I have a query in my controller:
// dropdown list
$this->data['main_level'] = $this->menu->main_level();
in my view I am definining a form:
<?php echo form_open(); ?>
<td><?php echo form_dropdown('parent_id', $main_level, ' '); ?> </td>
<?php echo form_close();?>
now, upon selection I want to run another query and display the result under the dropdown ?. How to do it ?
Also can I have blank in the third parameter for the dropdown indicating that upon loading
nothing was selected ?
$this->data['main_level'] = $this->menu_model->main_level();