Welcome Guest, Not a member yet? Register   Sign In
Populate a Drop down from Database
#5

We want to populate a dropdown with list of countries so I don't see a point to select country by country_id. If you're worry about DB hit, you can always cache the result.

Also, array_column have nothing to do with filtering query result. It just transform result to format, that can be used by form_dropdown function.
Reply


Messages In This Thread
RE: Populate a Drop down from Database - by michalsn - 03-25-2016, 03:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB