国外好东西真的多,现在贴上一个访问ACCESS的类!_PHP教程
程序员文章站
2022-04-22 23:19:32
...
这是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;
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;
上一篇: PHP:实现给下传图片加水印的程序代码
下一篇: 收集了php中截取字符串函数