conn= PDO("odbc">
当前位置:Gxlcms > PHP教程 > PHP数据库链接类(PDO+Access)_PHP教程

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

时间:2021-07-01 10:21:17 帮助过:29人阅读

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...

人气教程排行