I am working on what was created on a PC using php and ms access database. When I port the application to my MAMP environment, I get
Fatal error: Call to undefined function odbc_connect() in /path/to/index.php on line 37
line 37 is as follows:
return odbc_connect("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=myfile.mdb", "ADODB.Connection", "", "SQL_CUR_USE_ODBC");
It seems that odbc is not compiled into the MAMP version of PHP (5). I also tried using PDO and got similar errors.
Does anyone know how to fix this?
php ms-access mamp
sprugman
source share