fetchAll()); print ""; ?> _"/> fetchAll()); print ""; ?> _">

Home >Backend Development >PHP Tutorial >access-PHP如何连接加密码的ACCESS数据库?

access-PHP如何连接加密码的ACCESS数据库?

WBOY
WBOYOriginal
2016-06-02 11:27:451355browse

access加密php

_PHP如何连接加密码的ACCESS数据库?
//php.ini去掉php_pdo.dll与php_pdo_odbc.dll前的分号 2016-4-4测试连接无密码的access数据库成功 a1.mdb是 access文件名
//请问如果把a1.mdb文件加上密码123456,连接语句如何写?非常感谢!
$db = new PDO("odbc:driver={microsoft access driver (*.mdb)};dbq=".realpath("a1.mdb")) or die("Connect Error");
$rs = $db->query('select * from wenben');
print "

";<br>print_r($rs->fetchAll());<br>print "
";
?>
_
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn