I'm working on something that was built on a PC set-up using php and an ms access database. When I port the app to my MAMP environment, I get
Fatal error: Call to undefined function odbc_connect() in /path/to/index.php on line 37
line 37 looks like this:
return odbc_connect("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=myfile.mdb",
"ADODB.Connection", "", "SQL_CUR_USE_ODBC");
It seems like odbc isn't compiled into the MAMP version of PHP (5). I also tried using PDO, and got similar errors.
Anyone know how to fix this?