Welcome Guest, Not a member yet? Register   Sign In
Problem with Select Options/ arrays
#3

[eluser]eric cumbee[/eluser]
[quote author="ecigraeme" date="1249439444"]Do you need the processing step in your Get_all_states function

I would try changing it to this

Code:
function Get_all_states()
{
    $states = array();
    $this->db->select('id,name');
    $query = $this->db->get('state');
    return $states;
}
[/quote]

that would declare the $states array and return it without putting any results in it.


Messages In This Thread
Problem with Select Options/ arrays - by El Forum - 08-04-2009, 02:04 PM
Problem with Select Options/ arrays - by El Forum - 08-04-2009, 03:30 PM
Problem with Select Options/ arrays - by El Forum - 08-04-2009, 03:43 PM
Problem with Select Options/ arrays - by El Forum - 08-05-2009, 02:44 AM
Problem with Select Options/ arrays - by El Forum - 08-05-2009, 03:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB