I am trying to make a new RPG from scratch, and I\'m not that good at php or MySQL (only been at it for like, two months). But I know a good bit of MySQL and PHP, but there\'s an error on my game. When I log in, it says this:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/virtual/site50/fst/var/www/html/aerorpg/login.php on line 6
And when I look in the source code, I have this there...
$logres = mysql_num_rows(mysql_query("select * from ae_players where user=\'$user\' and pass=\'$pass\'"));
I created a table called \"ae_players\" and I put in the fields \"user\" and \"pass\" and \"email\" but now it\'s saying it\'s wrong?? How is it wrong?? Can anyone help???????