DB doesn't have num_rows/numRows ?? |
-
Paradinight
Senior Member
-
Posts: 446
Threads: 6
Joined: Jun 2015
Reputation:
25
(09-15-2018, 04:37 PM)skunkbad Wrote: (09-15-2018, 03:29 PM)dannywebdev Wrote: $usersCount = $UsersModel->countAllResults();
https://bcit-ci.github.io/CodeIgniter4/d...ng-results
No, I don't want to do a count query. I want the functionality of CI3's num_rows(), and if it exists I want it documented, and if it's documented I'd like to know where it is.
Also, now looking at the code, it looks like there is a $q->numRows, but I'm not so sure this is the same thing as CI3's num_rows(). Am I right that in CI2 one would use num_rows, then in CI3 it became a function, and now in CI4 who knows ....
See https://github.com/bcit-ci/CodeIgniter4/pull/109
|
Messages In This Thread |
RE: DB doesn't have num_rows/numRows ?? - by Paradinight - 09-15-2018, 10:11 PM
|