Welcome Guest, Not a member yet? Register   Sign In
Dynamic drop down list help
#2

[eluser]Nick_MyShuitings[/eluser]
Quote:$data = $this->User_model->get_continents();

I think that you need to call either ->result() if you like objects or ->result_array() if you prefer arrays. Then run a echo
Code:
echo "<pre>"; die(var_dump($data));
so that you can see that you actually have something now that you can run a foreach on.

if you run a var_dump of $data now you prolly get something along the lines of mysql result object gibberish

so.... try this:
Code:
$data = $this->User_model->get_continents()->result();
echo "<pre>";
die(var_dump($data));


Messages In This Thread
Dynamic drop down list help - by El Forum - 08-30-2010, 04:34 PM
Dynamic drop down list help - by El Forum - 09-02-2010, 12:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB