By pdjohnson on
Simple enough question I guess but what is the best way to get the number of records returned by the likes of $queryResult = db_query($query); ????
Simple enough question I guess but what is the best way to get the number of records returned by the likes of $queryResult = db_query($query); ????
Comments
Answer
I worked it out.
$queryResult = db_query($query);
$cnt = db_num_rows($queryResult);
--Paul Johnson