Field("SELECT web FROM firm WHERE id = ".$_GET['firm'], 'web'); mysql_query("UPDATE firm SET stat_traff = stat_traff + 1 WHERE id = ".$_GET['firm']); //die("UPDATE firm SET stat_traff = stat_traff + 1 WHERE id = ".$_GET['firm']); } if (!empty($url)) { header("Location: ".$url); die(); } header("Location: /"); die(); ?>