Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
How to access query results?
Hey! How can i access my query results
? i have this query and if i try to echo the result it wont work in any way.
$res = Model_Ncard::query()->where('Nname', 'LIKE', '%'.$name.'%' )->or_where('Nname_DE', 'LIKE', '%'.$name.'%')->get();
foreach($res as $row)
If im doing it with print_r i get a very strange result like shown below oO anyone get ideas?!?!
Model_Ncard Object ( [_is_new:protected] => [_frozen:protected] => [_data:protected] => Array ( [id] => 1 [Nid] => 3041 [Nname] => Aesthir Glider [Nset] ...etc
Don't worry, it an object. It is ok.
See, for example, $row->Nname
Add a Comment
It looks like you're new here. If you want to get involved, click one of these buttons!
Apply for Membership
↳ Job Board
↳ Installation & Setup
↳ Tips and Tutorials
↳ Code share
In this Discussion