PHP & MS access

Can anyone point me to a PHP3 example program that uses MS access or any generic ODBC drivers?
moshezAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

shawonCommented:
The folowing example uses MS SQL Server
Access is most same
<?
if($passwd == "" || $userid == ""){
      Header("HTTP/1.0 401 Unauthorized");
      echo "user ID or password is empty";
      exit;
}else{
      
      $conn=mssql_connect("SHAW","" ,"" );
      if (!$conn)      {
            echo "Connect to database failed\n";
            exit;
            }
      $selectdb=mssql_select_db("music", $conn);
      $query = "Select * from users where user_ID='$userid' and passwd='$passwd'";
      $select = mssql_query($query,$conn);
      $rows = mssql_num_rows($select);
      if($rows < 1){
            $message="That username is invalid... Please try again, or use the Send Password button.<br>\n";
            $login="False";
      }
      else {
            $login="True";
            $message = "Login successfuly";
      }
      echo $message;
}

?>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
moshezAuthor Commented:
Thanks Shawon

odbc driver is working a little different but this example simplifies things compared to MySQL examples.

Moshe
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.