if(!$DB_web)
{
require "initdb.php";
}
###############################函数开始
$fdType='顶部广告';
if($type=='top') $fdType='顶部广告';
if($type=='bottom') $fdType='底部广告';
if($type=='left') $fdType='左边广告';
$sql="select * from $bbsad where fdType='$fdType' order by id desc";
$result=$DB_web->query($sql);
$row=$DB_web->fetch_array($result);
$thistype=strrchr($row[fdImage],".");
if($row[fdImage])
{
if($thistype=='.swf')
{
if($row[fdWidth]) $thistring="width='$row[fdWidth]' ";
if($row[fdHeight]) $thistring.="height='$row[fdHeight]' ";
$string="";
}
else
{
if($row[fdWidth]) $thistring="width='$row[fdWidth]' ";
if($row[fdHeight]) $thistring.="height='$row[fdHeight]' ";
$string="";
}
}
$print_string="
| ".$string." |