Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Simple Login not working

  1. #11
    Join Date
    Jan 2007
    Location
    The stage
    Posts
    568
    Thanks
    23
    Thanked 6 Times in 6 Posts

    Default

    If it also might help...
    I think that
    Code:
    $sql="SELECT * FROM Admins WHERE Username='$myusername' and Password='$mypassword'";
    should be:
    Code:
    $sql="SELECT * FROM Admins WHERE Username='$myusername' AND Password='$mypassword'";
    If it makes any difference

  2. #12
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    Quote Originally Posted by Rockonmetal View Post
    If it also might help...
    I think that
    Code:
    $sql="SELECT * FROM Admins WHERE Username='$myusername' and Password='$mypassword'";
    should be:
    Code:
    $sql="SELECT * FROM Admins WHERE Username='$myusername' AND Password='$mypassword'";
    If it makes any difference
    It won't make much difference.

  3. #13
    Join Date
    Jan 2007
    Location
    The stage
    Posts
    568
    Thanks
    23
    Thanked 6 Times in 6 Posts

    Default

    Just a quick question? Is the Adminpage.php in a different folder than where the login script is? If so you need to put the full url to it...
    //Btw i just learned this yesterday... If you want a url from the folder above... you do this: "../file.php"
    Hope this helps

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •