I’m trying to connect to a MS Access db via PHP using ODBC. I’ve tried with the PHP PDO lib as well as ADODB (http://adodb.org/) – but neither works.
PDO returns: could not find driver: PDO->__construct(‘odbc:DRIVER={Mi…’) ADODB returns: Call to undefined function odbc_exec()
I think I’ve installed the ODBC extension properly. I installed:
apt-get install libmdbodbc1 apt-get install libodbc1 apt-get install php5-odbc apt-get install libmyodbc
…basically every odbc related lib I came across. still no luck.
Any tips or suggestions?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I found this info sheet most helpful.
https://blog.remirepo.net/post/2016/09/20/Microsoft-SQL-Server-from-PHP
I came here looking for a resolution to an issue reading an access database. This GIST article may be of use. https://gist.github.com/amirkdv/9672857
I can access the database using mdbtools but from apache a fault is thrown the first time I try to issue a prepared statement.
Did you get this working?
This comment has been deleted
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.