• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is there no longer a need for num_rows()?

#6
(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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.