1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    Use the PEAR DB package. You'll find it here.
     

Share This Page