ecshop根据广告位获取广告代码

1,882次阅读
没有评论
table('ad_position') .           " AS ap right JOIN " . $GLOBALS['ecs']->table('ad') . " AS ad ON ad.position_id = ap.position_id WHERE ap.position_name='".$ap_name."'";

$res = $GLOBALS['db']->getAll($sql);

if($res)
{
foreach($res as $key=>$val)
{
if($media_type==0)
{
$res[$key]['ad_code'] = 'data/afficheimg/' . $res[$key]['ad_code'];
}
}
}
return $res;
}
}
?>

                                                    
正文完
 

公众号