Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2110

Joomla! 5.x Coding • Re: Query returning 0 rows, when there is a row

$
0
0
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



Viewing all articles
Browse latest Browse all 2110

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>