"; do{ $advid=$myrow["adv_id"]; $gotourl="$adv_url/gotogg.php?id=$advid"; $sql1= "SELECT color,bgcolor,moving,movingtype,maxsize,bold,adv_info.id as advid,adv_type.type,adv_type.defaultt," ."adv_type.defaultu,flash,title,url,pwidth,pheight from adv_type,adv_info where adv_info.id='$advid' and adv_info.type=adv_type.id"; $result1 = @mysql_query($sql1); if($myrow1=@mysql_fetch_array($result1)) {$type=$myrow1["type"]; $defaultt=$myrow1["defaultt"]; $defaultu=$myrow1["defaultu"]; $pwidth=$myrow1["pwidth"]; $pheight=$myrow1["pheight"]; $title=$myrow1["title"]; $url=$myrow1["url"]; $type=$myrow1["type"]; $advid=$myrow1["advid"]; $type=$myrow1["type"]; $color=$myrow1["color"]; $bgcolor=$myrow1["bgcolor"]; $moving=$myrow1["moving"]; $movingtype=$myrow1["movingtype"]; $maxsize=$myrow1["maxsize"]; $bold=$myrow1["bold"]; $flash=$myrow1["flash"]; } if($advid){ if(!$title){$title=$defaultt;$url=$defaultu;$gotourl=$url;} if($flash){ $code.=""; $code.=""; $code.=""; $code.=""; $code.=""; } else{ if($type){if($title)$code.=""; else $code.="";} else{ $code.=""; if($movingtype)$movingtype="BEHAVIOR=ALTERNATE"; if(($moving)||((strlen($title)/2>$maxsize)&&($maxsize>0)))$code.=""; if($bgcolor)$bgcolor="style=\"background:$bgcolor;height:12pt\""; $code.=""; if($bold)$code.=""; if($color)$code.=""; $code.="$title"; if($bold)$code.=""; if($color)$code.=""; $code.=""; if($moving)$code.=""; $code.="";} } }else{$code.="";} }while($myrow=@mysql_fetch_array($result)); } $code.=""; ?> document.write('') $enddate)) { $title=$defaultt; $url=$defaultu; } if($flash){ $code=""; $code.=""; $code.=""; $code.=""; $code.=""; }else{ if($type){if($title)$code=""; else $code="";} else{ if($movingtype)$movingtype="BEHAVIOR=ALTERNATE"; if(($moving)||((strlen($title)/2>$maxsize)&&($maxsize>0)))$code.=""; if($bgcolor)$bgcolor="style=\"background:$bgcolor;height:12pt\""; $code.=""; if($bold)$code.=""; if($color)$code.=""; $code.="$title"; if($bold)$code.=""; if($color)$code.=""; $code.=""; if($moving)$code.=""; $code.=""; } } ?> document.write('')