Parašė Child· 2008 Rugp. 18 23:08:07
#20
Tai va pasidariau infusiona su vieno is sio webo nariu pagalba,bet ne iki galo. dabar yra sukurta reklamine panele mano saite kuri rodo 3 banerius per viduri bet isdarko vaizda patys galit paziureti kaip
www..bedrauk.xz.lt stai cia kodas tik nznau kaip padaryt kad isdakytu man visko
openside("<center> Banerių panelė </center>");
$bresult2 = dbquery("select * from ".$db_prefix."banner WHERE status='1' ORDER BY RAND() limit 0,3");
while($banner = dbarray($bresult2)) {
$banner_display = '<center><a target="_banner" href="'.INFUSIONS.'banner_panel/view.php?bid='.$banner['bid'].'"><img src="'.$banner['imageurl'].'" border="1" height="60'.$bannerheight.'" width=468"'.$bannerwidth.'"></a><br></center>';
//check ownership user to client id
if($banner['cid']!=$userdata['user_id'])
{
//add the impression
dbquery("update ".$db_prefix."banner set impmade=impmade+1 where bid=$banner[bid]");
}
if($banner['impmade'] >= $banner['imptotal'] && $banner['imptotal']!='0')
{
dbquery("UPDATE ".$db_prefix."banner SET enddate=NOW( ) , status = '0' WHERE bid =$banner[bid] LIMIT 1 ;");
}
echo $banner_display;
}
closeside();