调用方式如下:其中debugstr这个函数就是类似一个echo。
复制代码 代码如下:
debugstr('$adv->getcontentbyid($id); $id为广告编号, 仅调用一条,返回内容为字符串');
echo adv::getcontentbyid(35);
debugstr('$adv->getcontentbyidjs($id); $id为广告编号, 仅调用一条,返回内容为js字符串');
echo adv::getcontentbyidjs(35);
debugstr('$adv->getcontentbyorder($id); $id为广告编号, 仅调用id倒序一条,返回内容为字符串');
echo adv::getcontentbyorder(4);
debugstr('$adv->getcontentbyorderjs($id); $id为广告编号, 仅调用id倒序一条,返回内容为js字符串');
echo adv::getcontentbyorderjs(4);
echo '
';
类如下:
复制代码 代码如下:
SqlStr = $SqlStr;
if ($MyDatabase->Query ()) {
$DB_Record = $MyDatabase->ResultArr [0];
$FileName = $DB_Record[0];
$Width = $DB_Record[1];
$Height = $DB_Record[2];
$Url = $DB_Record[3];
}
//判断类型
$FileName_Ext=strtoupper(pathinfo($FileName, PATHINFO_EXTENSION));
if ($FileName_Ext=='SWF'){
//Flash广告
$ReturnContent = '';
$ReturnContent.= '
| ';
$ReturnContent.= '









