query("SET NAMES utf8"); $DB -> query("SET CHARACTER SET utf8"); $DB->query("UPDATE banner SET megtekintve = megtekintve + 1 where id ='".(int)$_GET[id]."'"); $adat = $DB->fetch("SELECT url from banner where id='".(int)$_GET[id]."'"); $adat[url] = str_replace("http://","",$adat[url]); $adat[url] = str_replace("Http://","",$adat[url]); $adat[url] = str_replace("HTTP://","",$adat[url]); header("location: http://".$adat[url]); $DB -> close(); ob_end_flush(); ?>