<?
include 'inc/config.php';
include 'inc/conn.php';
$rek=mysql_fetch_array(mysql_query("SELECT * FROM `".prefix."rekl` WHERE `id` = '".intval($_GET['link'])."'"));
mysql_query("UPDATE `".prefix."rekl` SET `count` = '".($rek['count']+1)."' WHERE `id` = '$rek[id]'");
header("Refresh: 0; url=$rek[url]");
?>