query("UPDATE LOW_PRIORITY omp_ad SET clicked=`clicked`+1 WHERE aid={$aid}",'CACHE'); $r = $db->get_one("SELECT url FROM omp_ad WHERE aid={$aid}","CACHE"); if($r['url']) eheader($r['url']); else eheader(EW_URL); ?>