• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Populate Dropdowns

I have searched but can't find anything on this.

I currently do my drop downs like so in the view
<label>DJ Select:</label>
$sts_options = array('Open' => 'Open','Dan' => 'Dan','Bob' => 'Bob');
echo form_dropdown('djslot', $sts_options, $djslot, 'class="inputText"');
As I so far have not had the need for dynamic dropdowns, but do now but with a static option in there as well.

I need a dynamic drop down menu that takes data from the users table and shows it in the dropdown, however I also need a static option to be show, I need Open to be shown as well.

So it will be
[Data from users table, eg Name]

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.