Welcome Guest, Not a member yet? Register   Sign In
form_dropdown
#3

[eluser]louisc[/eluser]
The reason I did the following was to be able to use the required CI validation rule, so it is not possible to do that.

$db_results = $this->lookup_model->get_locations();
$pr_options = array('' => 'Please select');
$options = array_merge($pr_options, $db_results);


Messages In This Thread
form_dropdown - by El Forum - 07-05-2011, 05:48 AM
form_dropdown - by El Forum - 07-05-2011, 06:36 AM
form_dropdown - by El Forum - 07-05-2011, 06:44 AM
form_dropdown - by El Forum - 07-05-2011, 09:22 AM
form_dropdown - by El Forum - 07-06-2011, 12:06 AM
form_dropdown - by El Forum - 07-06-2011, 02:15 AM
form_dropdown - by El Forum - 07-06-2011, 05:41 AM
form_dropdown - by El Forum - 07-06-2011, 06:12 AM
form_dropdown - by El Forum - 07-06-2011, 06:55 AM
form_dropdown - by El Forum - 07-06-2011, 06:59 AM
form_dropdown - by El Forum - 07-06-2011, 07:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB