Welcome Guest, Not a member yet? Register   Sign In
help on user authorization
#3

[eluser]Bramme[/eluser]
Dunno if this is of any use for you, but I've always used a query like

Code:
if(num_rows(mysql_query(SELECT * FROM users WHERE username = $username AND password = $password)) == 1) {
return true;
};

Much faster if you ask me... (should do a benchmark though)


Messages In This Thread
help on user authorization - by El Forum - 07-18-2008, 08:55 PM
help on user authorization - by El Forum - 07-18-2008, 11:58 PM
help on user authorization - by El Forum - 07-19-2008, 02:47 AM
help on user authorization - by El Forum - 07-19-2008, 06:58 AM
help on user authorization - by El Forum - 07-19-2008, 07:41 AM
help on user authorization - by El Forum - 07-19-2008, 08:28 AM
help on user authorization - by El Forum - 06-02-2009, 04:55 AM
help on user authorization - by El Forum - 06-02-2009, 03:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB