[SOLVED] Determing Row Count
Posted: Wed Sep 01, 2004 12:34 pm
I need to know how many rows a query is returning...is there a built in function to do this?
I know I could do this:
but that seems like a bloated way of doing things...I'm thinking there's got to be something easier that's built in....
please advise,
thx,
Burr
I know I could do this:
Code: Select all
<?php
$count = 0;
while($row = mysql_fetch_assoc($queryname)){
$count = $count + 1;
}
?>please advise,
thx,
Burr