LMSouq
general-dev Open

Row count with PDO

JA
James
1 month ago
3 views
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

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base