Go4Expert

Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   login with access database (http://www.go4expert.com/forums/login-access-database-t3899/)

wq321 17Apr2007 01:32

login with access database
 
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?

pradeep 17Apr2007 10:55

Re: login with access database
 
Use the PEAR DB package. You'll find it here.


All times are GMT +5.5. The time now is 15:22.