
Originally Posted by
Dexboy
Hey guys,
I have a login page working so they can login and see a new page, but wondering what type of code I can put in the login page so that Only Level's 60 + in a account can access the page. .php coding
Thanks
Somewhere you will see something like this:
Code:
Select * FROM accounts where username='$username' AND password = '$pass'
change it to:
Code:
SELECT * FROM accounts AS a INNER JOIN characters AS c ON c.accountname = a.username WHERE a.username='$username' AND a.password = '$pass' AND c.level >= 60
It might work.