Problem Description
There are many conflicting statements around. What is the best way to get the row count using PDO in PHP? Before using PDO, I just simply used `mysql_num_rows`.
`fetchAll` is something I won't want because I may sometimes be dealing with large datasets, so not good for my use.
Do you have any suggestions?
AI-Generated Solution
Powered by LMSouq AI · GPT-4.1-mini
Analyzing problem and generating solution…
Was this solution helpful?