I have recently been following some tutorials about making a login and registration system. I have followed the tutor extremely closely all the way through and we have the exact same code, although I am getting a "Warning: mysql_result() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\idea\core\functions\users.php on line 5" every time.
Line 5 refers to return (mysql_result($query, 0) == 1) ? true : false;, which is the return statement on a MySQL query. This is stopping me from progressing and I have gotten this far, so choosing a different tutorial is not really an option.
Sorry, thought I should add the actual query: $query = mysql_query("SELECT COUNT(user_id) FROM users WHERE username = '$username'"); There were previously backticks around user_id, users and username, although I couldn't add those in.