This function will give you the total number of rows in a given database query. This is often used to check for rows in a result before displaying content.
Quote
dbrows ( resource $query )
<?php
$result = dbquery("SELECT * FROM table1", $link);
$num_rows = dbrows($result);
echo "$num_rows Rowsn";
?>