Knowledgebase: Databases
DSN-less ODBC Connection to a MS Access Database using PHP
Posted by Tegan King on 15 February 2012 11:23 AM


This code sets up a DSN-less ODBC connection to a MS Access Database in PHP 5 on your server platform.


if (!isset($con))

{ $dbfilename = "D:/HostingSpaces/yourspacename/";

$dbuser = "";

$dbpassword = ""

$con = odbc_connect("Driver={Microsoft Access Driver (*.mdb)};

Dbq=$dbfilename", $dbuser, $dbpassword);




SEE ALSO: Database Knowledge base Articles | "Important IP Addresses" knowledge base article

Contact Support

If you are still having issues, please contact us for further help.
1-877-EPHOST1 |



(2 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Copyright © 2021 EPhost, Inc. All rights reserved.