Forum Moderators: coopster
I'd appreciate any help you can give. I've tried PHP.net, but I can't find anything about Access database connections.
it's not a miracle you found nothing at php.net. access is not directly supported (for example like mysql), but you don't need to worry. you can simply use the ODBC functions to connect to access. ODBC is supported by PHP [php.net] so that might be the place to start. on that page you'll find some info in the usercomments how to connect to a access db:
To connect to a MDB Access file without adding a system dsn to Windows :$cfg_dsn = "DRIVER=Microsoft Access Driver (*.mdb);
DBQ=C:/Access.mdb;
UserCommitSync=Yes;
Threads=3;
SafeTransactions=0;
PageTimeout=5;
MaxScanRows=8;
MaxBufferSize=2048;
DriverId=281;
DefaultDir=C:/ProgramFiles/CommonFiles/ODBC/DataSources";$cfg_dsn_login = "";
$cfg_dsn_mdp = "";odbc_connect($cfg_dsn,$cfg_dsn_login,$cfg_dsn_mdp);
i guess that's the point to start you were looking for. anyways, access is not a multi user database, so beware: do not make many connections at the same time to your access file. this will slow down a lot and you might loose data. this is especially important when you build a website based on access.
--hakre
MySQL/PHP or MS Access [webmasterworld.com]
[webmasterworld.com...]
[webmasterworld.com...]
[webmasterworld.com...]
[webmasterworld.com...]