Using the ORM (or query builder) results in something like this below. I'm trying to step through the results within the code but the names are throwing me for a loop. ie., "[_query:protected]" and "[_data:protected]"
Any ideas? Would like to just get this to output : print $query->_result:protected[0]['id'];
Fuel\Core\Database_Result_Cached Object
(
[_query:protected] => SELECT * FROM `meta_data`
[_result:protected] => Array
(
[0] => Array
(
[id] => 1
[event_id] => 4
[user_name] => frank
)
)
[_total_rows:protected] => 1
[_current_row:protected] => 0
[_as_object:protected] =>
)
Fuel\Core\Database_Result_Cached Object
(
[_query:protected] => SELECT * FROM `meta_data`
[_result:protected] => Array
(
[0] => Array
(
[id] => 1
[event_id] => 4
[user_name] => frank
)
)
[_total_rows:protected] => 1
[_current_row:protected] => 0
[_as_object:protected] =>
It looks like you're new here. If you want to get involved, click one of these buttons!