Welcome Guest, Not a member yet? Register   Sign In
Is there no longer a need for num_rows()?
#6

(This post was last modified: 08-13-2019, 05:37 AM by dave friend.)

(08-13-2019, 04:20 AM)InsiteFX Wrote: The countAll method returns

PHP Code:
return (int) $query->numRows

But countAll performs another query on the DB which the OP wants to avoid. That, and countAll() returns the count for the entire table without considering any "where" or "like" clauses.
Reply


Messages In This Thread
RE: Is there no longer a need for num_rows()? - by dave friend - 08-13-2019, 05:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB