Actually, yes. <b>mysql_num_rows</b> works only for MySQL databases. Try <b>odbc_*</b> functions to cammunicate with your database, case, if it\'s not MySQL or PostgresSQL.
Now, if what you want is just the SQL query, it goes like this:
<B>SELECT COUNT(field) AS maxrows FROM table</B>
Then, you rescue the value of maxrows and there you got the number of rows FOR A WHOLE TABLE. If you want to, use criteria to narrow your search, like
<B>SELECT COUNT(field) AS maxrows FROM table WHERE field2 = \'whatever_you_want_it_to_be\'</B>
Hope it helps
fLIPIS