Login Page .php

Results 1 to 2 of 2
  1. #1
    Elite Member Dexboy is offline
    Member +Rank
    Sep 2008 Join Date
    In SpaceLocation
    226Posts

    Login Page .php

    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


  2. #2
    Grand Master BBim is offline
    Grand MasterRank
    Sep 2008 Join Date
    127.0.0.1Location
    1,110Posts

    Re: Login Page .php

    Quote Originally Posted by Dexboy View Post
    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.



Advertisement