Posts: 1,725
Threads: 105
Joined: Feb 2011
Reputation:
0
08-13-2011, 05:50 PM
(This post was last modified: 08-13-2011, 05:52 PM by Eyrk.)
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/roperson/public_html/Account/cookie.php on line 11
[This part is made by the sError() function]
Error
Incorrect username/password
I'm going do a mysql_error() to check it.
OMG!
I failded so epicly.
It's because I forgot to select the database!
Posts: 823
Threads: 75
Joined: Apr 2011
Reputation:
0
Lol,
well I'm glad you fixed it.
Posts: 1,725
Threads: 105
Joined: Feb 2011
Reputation:
0
08-13-2011, 05:56 PM
(This post was last modified: 08-13-2011, 05:57 PM by Eyrk.)
It's not fixed throu.
I'm pretty sure I'm doing everything right, I' create a test.
Yep, I created an account "t" with the pass of "t" and it says "Incorrect"
Posts: 823
Threads: 75
Joined: Apr 2011
Reputation:
0
Can I see the registration code?
Posts: 823
Threads: 75
Joined: Apr 2011
Reputation:
0
You have to hash the password the same way it is hashed in the login script.
Posts: 1,725
Threads: 105
Joined: Feb 2011
Reputation:
0
I never got into hashing...
Posts: 823
Threads: 75
Joined: Apr 2011
Reputation:
0
Well,
then don't hash the password in the login script.
Posts: 1,725
Threads: 105
Joined: Feb 2011
Reputation:
0
08-13-2011, 06:08 PM
(This post was last modified: 08-13-2011, 06:11 PM by Eyrk.)
I think I can, based on your hashing.
*Testing*
IT WORKS!
thanks.