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";
}


Messages In This Thread
Pass multiple arrays/datasets into view... - by El Forum - 02-11-2012, 12:39 PM
Pass multiple arrays/datasets into view... - by El Forum - 02-11-2012, 01:08 PM
Pass multiple arrays/datasets into view... - by El Forum - 02-11-2012, 01:43 PM
Pass multiple arrays/datasets into view... - by El Forum - 02-11-2012, 01:53 PM
Pass multiple arrays/datasets into view... - by El Forum - 02-11-2012, 02:06 PM
Pass multiple arrays/datasets into view... - by El Forum - 02-11-2012, 02:16 PM
Pass multiple arrays/datasets into view... - by El Forum - 02-11-2012, 02:21 PM
Pass multiple arrays/datasets into view... - by El Forum - 02-11-2012, 02:23 PM
Pass multiple arrays/datasets into view... - by El Forum - 02-11-2012, 04:32 PM
Pass multiple arrays/datasets into view... - by El Forum - 02-12-2012, 02:55 AM
Pass multiple arrays/datasets into view... - by El Forum - 02-12-2012, 05:04 AM
Pass multiple arrays/datasets into view... - by El Forum - 02-12-2012, 07:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB