Welcome Guest, Not a member yet? Register   Sign In
How to populate a dropdown from result_array
#4

(01-13-2015, 02:23 AM)Avenirer Wrote: what you get from the model is an array with departments, the array being an indexed array, but when you pass the data to the dropdown you simply pass it an array which doesn't exist: $departments['names'].
I updated my question. I later realised I was passing the result_array to the wrong view. Now I have a new error. The dropbox is only showing the first Department name and its id. Iwant it to show all the departments only with the id hidden
Reply


Messages In This Thread
RE: How to populate a dropdown from result_array - by andyblem - 01-13-2015, 03:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB