• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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;


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.