Some trouble with register.php

Post here is you are having problems with any of the tutorials.
Post Reply
TheHacker
Posts: 1
Joined: Sun Nov 11, 2012 6:41 am

Some trouble with register.php

Post by TheHacker »

So i built a login system but there's an error I keep getting when a user registers wrong
it says :
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/brian_utxt/brian.urbantxt.org/core/inc/user.inc.php on line 9


and line 9 is:
return (mysql_result($total, 0) == '1') ? true : false;

Please help!! :|
die();
User avatar
Temor
Posts: 1186
Joined: Thu May 05, 2011 8:04 pm

Re: Some trouble with register.php

Post by Temor »

This error occurs when you have an error in your SQL query.
Post all the code that's relevant, not just the last line please :)
Post Reply