web 2.0

How to use PHP & Access (odbc) Connect to Database

How to use PHP & Access (odbc) Connect to Database This is tutorial  php developers how to using php connect to Microsoft Access database and odbc_connect() function.

ShotDev Focus:
- PHP & Microsoft Access (Connect to Database)

Example

php_access.php


<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<?
$objConnect = odbc_connect("mydatabase","","");
if($objConnect)
{
echo "Database Connected.";
}
else
{
echo "Database Connect Failed.";
}

odbc_close($objConnect);
?>
</body>
</html>

Create a php file and save to path root-path/myphp/

Run
http://localhost/myphp/php_access.php

Screenshot

PHP Microsoft Access
.
.
.

Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.