mssql_num_rows

Gets the number of rows in result (PHP 3, PHP 4, PHP 5)
int mssql_num_rows ( resource result )

mssql_num_rows() returns the number of rows in a result set.

See also mssql_query() and mssql_fetch_row().