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

PHP数据库链接类(PDO+Access)_PHP教程

程序员文章站 2022-05-03 18:17:12
...
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));

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/626675.htmlTechArticlePHP PDO Access链接 ="../../App_Data/sd#f#45G_!.mdb" ="DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=". ( -conn= PDO("odbc: ") or ("PDO Connection faild." Read( , = = -conn-prepar...