欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  php教程

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));