login with access database

Discussion in 'PHP' started by wq321, Apr 16, 2007.

  1. wq321

    wq321 New Member

    Joined:
    Apr 16, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    i need to create a log in that connect to an access database to retrieve the passwords. i have created a log in and can enter a password but i don't know how to connect it to the database to get the password from there instead. this is the code i have:


    PHP:
    <?php
    $ActualPassword
    "secret";
    if (
    $_POST["PasswordGuess"] ==  $ActualPassword)
         {
        
    session_start();
        
    $_SESSION["Authorised"] = "Y";
        
    header("Location: index.php"); 
        }
    else
        
    header("Location: wrongpassword.php"); 
    ?>
    can anyone help please?
     
    Last edited by a moderator: Apr 17, 2007
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    Use the PEAR DB package. You'll find it here.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice