首頁 >後端開發 >php教程 >国外好东西真的多,现在贴上一个访问ACCESS的类!_PHP教程

国外好东西真的多,现在贴上一个访问ACCESS的类!_PHP教程

WBOY
WBOY原創
2016-07-13 11:00:22959瀏覽

这是ACCESS的类

Class AccessDBM
{
    var $COUNT = 0;
    var $VALUES = array();
    var $FILE = "";
    var $ERROR = "";
    var $EXISTS = false;
    var $STATIC = false;
    var $EXACT = false;
    var $DBM;
//    Older version of PHP can't do the 'new ClassName(args)'
//    Use initilize() if this is the case.
//    *******************************************************
    function AccessDBM ($dbmFile, $static = 0)
    {
        global $php_errormsg;
        if(!empty($dbmFile))
        {
       if(file_exists($dbmFile))
       {
           $this->EXISTS = true;
       }
       if($static != 0)
       {
           $this->STATIC = true;
       }
       $this->FILE = $dbmFile;
        }
        return;
    }
//    *******************************************************
//    Identical to AccessDBM
    function initialize ($dbmFile, $static = 0)
    {
        global $php_errormsg;

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/631825.htmlTechArticle这是ACCESS的类 ? Class AccessDBM { var $COUNT = 0; var $VALUES = array(); var $FILE = ; var $ERROR = ; var $EXISTS = false; var $STATIC = false; var $EXACT = false; var $DBM; //...
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn