Welcome Guest, Not a member yet? Register   Sign In
DB doesn't have num_rows/numRows ??
#6

(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
Reply


Messages In This Thread
DB doesn't have num_rows/numRows ?? - by skunkbad - 09-15-2018, 10:51 AM
RE: DB doesn't have num_rows/numRows ?? - by Paradinight - 09-15-2018, 10:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB