login with access database

wq321's Avatar
Newbie 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 Code:
<?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 shabbir; 17Apr2007 at 06:03.. Reason: Code formatting
pradeep's Avatar, Join Date: Apr 2005
Team Leader
Use the PEAR DB package. You'll find it here.