#1
|
||
|
Problems with user auth
Hi,
I'm trying to integrate your Simple User Auth script, and I had a lot of bugs and problems, but there is only one that I can't really figure out... When I try to log in using script, I get following error Code:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /***/***/usermenu.php on line 28 PHP Code:
|
#2
|
||
|
That problem usually occures when there isd no database setup or the database fields do not match the fields you are selecting from. Do you have a database setup?
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#3
|
||
|
Yes, i'm actually accessing pbpBB db here is the code:
PHP Code:
|
#4
|
||
|
I think the problem is your select statement - your just adding slashes.
phpbb passwords are encrypted using MD5.... thus the entered password your compairing to the database won't match. But to make sure your generating the correct MD5 hash, you also need to find out if phpbb is using the addslashes function on the passwords before it runs the MD5 algorithim (I don't believe it does, as I have reset passwords by just replacing the password with my own MD5 hash - but then again, none of my passwords have special characters). You need to figure that out as that will effect the MD5 You will also need to check to see if phpbb uses addslashes on the username.... Based on my quick researchon the only copy I have (nuke evolution) they use htmlspecial caracters, then do some extra work on it... thats what stands out at first glance - the mysql_query("select****") statement returns nothing because the name and password wasn't properly formated before being used to compair with the data in the database. IcI |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
User Arcade | Chrispy | General Chat | 1 | 01-03-2006 10:02 PM |
User button | -Tigger- | Sigs and Graphics | 4 | 12-16-2005 03:10 PM |
new user | spang | Delta Force | 9 | 02-11-2003 04:20 PM |