我试图从访问数据访问数据库在PHP中。代码适用于32位PHP(我已经在PHP版本> 5中测试过),但代码为64位php wamp生成错误。MS Access数据库在PHP 64位SQL状态IM002错误
错误消息:Warning: odbc_connect(): SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in
我已经试过什么:How can I correct this error: Data source name not found and no default driver specified
代码:
$connection = odbc_connect("Driver={Microsoft Access Driver (*.mdb)};Dbq=$db", "","");
$tabs = odbc_tables($connection);
是否有任何解决方案或我已经安装32位版本?
安装64位驱动程序; http://www.microsoft.com/en-us/download/details.aspx?id=13255 –