Welcome Guest, Not a member yet? Register   Sign In
num_rows in CI4
#1
Lightbulb 

Dear,
- Can i get num rows with code:
$rows = count($db->getReults());
Because i see:
-------------
public function getResult(string $type = 'object'): array
-------------
It return an array, so can use count?
Thanks for help

Learning CI4 from my works, from errors and how to fix bugs in the community

Love CI & Thanks CI Teams

Reply
#2

return $db->countAllResult();
Reply




Theme © iAndrew 2016 - Forum software by © MyBB