This function returns a single result row. If your query has more than one row, it returns only the first row. The result is returned as an object. Here's a usage example:
$query = \DB::select( 'id', 'username', 'group', 'email' ) ->from( 'users' ) ->where('id', '=', 1234 ) ->execute() ->current();For more info, see: http://fuelphp.com/forums/topics/view/1136 Jozef
Jozef Kapicak wrote on Friday 6th of May 2011:Hi, You can do it this way:
$query = \DB::select( 'id', 'username', 'group', 'email' ) ->from( 'users' ) ->where('id', '=', 1234 ) ->execute() ->current();For more info, see: http://fuelphp.com/forums/topics/view/1136 Jozef
It looks like you're new here. If you want to get involved, click one of these buttons!