PDO apparently has no means to count the number of rows returned from a select query (mysqli
has the num_rows
variable).
Is there a way to do this, short of using count($results->fetchAll())
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…