The documentation is not clear but for PDO drivers getNumRows() is a proxy to PDOStatement::rowCount() which should not be used for SELECT statements. You should count the rows in PHP, by using count() on the result array.
Statistics: Posted by SharkyKZ — Mon May 20, 2024 12:12 pm