PHP数据库链接类(PDO+Access)
程序员文章站
2024-01-10 09:46:16
...
PHP PDO Access链接
="../../App_Data/sd#f#45G_!.mdb"="DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=".(->conn= PDO("odbc:") or ("PDO Connection faild."
Read(,==->conn->prepare(=(( ->bindValue(":".,[->execute() or ('sql error:'.=->
Edit(,==->conn->prepare(=(( ->bindValue(":".,[=->execute() or ('sql error' = DbHelpClass();
调用:
->Read('select title from pro where id=:id',(id=>1));
上一篇: php实现随机生成易于记忆的密码