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

pdjohnson’s picture

I worked it out.

$queryResult = db_query($query);
$cnt = db_num_rows($queryResult);

--Paul Johnson