Maison >développement back-end >tutoriel php > 关于php访问access的迷惑,困扰了一天也没解决
关于php访问access的困惑,困扰了一天也没解决
<br /> $connstr="DRIVER=Microsoft Access Driver (*.mdb);DBQ=".realpath("D:/zhxlweb/web/www.test.com/zhxl.mdb") ; <br /> $connid=odbc_connect($connstr,"","",SQL_CUR_USE_ODBC ); <br /> <br /> $sql = "select * from zhxl_article";<br /> <br /> $query = odbc_exec($connid,$sql);<br /> <br /> while($row=odbc_fetch_array($query)){<br /> print_r($row);<br /> }<br />