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

#1
[eluser]PixelPanic[/eluser]
I have searched but can't find anything on this.

I currently do my drop downs like so in the view
Code:
<label>DJ Select:</label>
&lt;?php
$sts_options = array('Open' => 'Open','Dan' => 'Dan','Bob' => 'Bob');
echo form_dropdown('djslot', $sts_options, $djslot, 'class="inputText"');
?&gt;
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
Open
[Data from users table, eg Name]


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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