1,参考W3CSHOOL
http://www.w3cschool.cc/php/php-pdo.html
2,连接access
<?php $db = new PDO("odbc:driver={microsoft access driver (*.mdb)}; dbq=".realpath("data.mdb")) or die("Connect Error"); $rs = $db->query(‘select * from user‘); print "<pre>"; print_r($rs->fetchAll()); print "</pre>";
时间: 2024-09-29 05:27:09