Mysql_num_rows counts the results from a query. From what I see, it would basically give you an answer of \"1\" or \"0\" because either one or no players have the specified username and password. Try this instead:
$query="SELECT * FROM ae_players WHERE user=\'$user\' AND pass=\'$pass\'";$logres = mysql_query($query,$db);$return_count = mysql_num_rows($logres);
Notice the $db varible. You aren\'t getting an error because of that, but I always put my DB connections in with the query.
BTW: from your post, you didn\'t specify what you needed the mysql_num_rows for... From what I see, it has no purpose, unless you wanted to see if the result returned true or not.
Also, just a tip from someone who began PHP/MySQL just a while ago too... take advantage of the variables
Notice I split up your query, and other parts. That makes it much neater, and easier to find problems later on. It\'s an awsome function
This this post didn\'t help, please post again, and I\'ll try again