Last updated 2 years ago
This is how you get the result of selectLoop.
selectLoop is for retrieving many rows from the table.
// DB()->selectLoop($columns, $table, $whereParams); <?php namespace App\Controllers; class UserController { public function index() { $user_data = DB()->selectLoop('*', 'users', 'id > 0')->get(); return view('/index', compact('user_data')); } }
foreach($user_data as $users){ echo $users['fullname']; }