Welcome Guest, Not a member yet? Register   Sign In
Pass multiple arrays/datasets into view...
#11

[eluser]Unknown[/eluser]
1. try running the query in your database, do you get any results?
2. try a vardump directly in the model.
3. try vardump in the controller
4. try vardump in the view

Now you should know where it is going wrong.

Code:
if(isset($country)){
echo "country variable is set :)";
foreach($country as $Result) {
       echo "<option value=" . $Result-&gt;country_id . ">" . $Result->country_name . "</option>\n";
}
}else{
echo "the country variable was empty";
}
#12

[eluser]InsiteFX[/eluser]
Remove the db_close in your model methods you do not need to close the database CodeIgniter will take care of that for you!
Code:
$config['pconnect'] = FALSE;




Theme © iAndrew 2016 - Forum software by © MyBB