首页 >php教程 >php手册 >国外好东西真的多,现在贴上一个访问ACCESS的类!

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

WBOY
WBOY原创
2016-06-13 09:59:331390浏览

这是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;

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn