Hi mgway,
for using this function you need a successful query resource to mysql like
$sql=mysql_query("SELECT * from table");
$rows=mysql_num_rows($sql);
echo $rows
you can check if your query syntax is correct while quering to mysql like
if(!$sql=mysql_query("SELECT * from table")) die(mysql_error());
this will notify you what error occurs when you quering to mysql. for more help give your codes sample?
Best Regard:
Md. Zakir Hossain (Raju)
www.rubd.net
www.xenexbd.com
Cheap Hosting, Domain, Reseller
www.forum.rubd.net