I followed the User System tutorial, followed by the Cookie Extension tutorial and everything worked out perfectly.
On the Email Activation tutorial [03] I unfortunately came across an error when I'm testing if an account is active or not.
The code on line 35 (core/inc/user.inc.php) is the following:Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/liquid/public_html/projects/login/core/inc/user.inc.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /home/liquid/public_html/projects/login/core/inc/user.inc.php:35) in /home/liquid/public_html/projects/login/login.php on line 32
return (mysql_result($result, 0) == '0') ? true : false;And the code from line 32 (login.php) is:
header('Location: protected.php');I've looked at the code from mine and the tutorial I followed on the BetterPHP YouTube channel and everything seems to be exactly the same.
Any ideas what the problem is?
Thanks, Joe.