When I do the following command: $number_of_entries=mysql_numrows($blog_activity_result); and there are no rows I get an error (Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in ...) When that happens I want to display a greeting to invite the user to engage in the community blog I am creating. How can I make my own greeting, instead of displaying the error mySQL is giving me? Ron -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php