1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

login with access database

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

  1. wq321

    wq321 New Member

    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

    Use the PEAR DB package. You'll find it here.
     

Share This Page