require_once('config.inc.php'); $data = sql_get_one('konten_'.@$_GET['table'], 'id = '.@$_GET['id']); if (isset($data['aff_link'])) { $strTarget = $data['aff_link']; } else { $strTarget = @$_SERVER['HTTP_REFERER']; } $sql = " INSERT INTO ffinanzen_clickthrough (ref_url,to_url,to_name) VALUES('" . $_SERVER['HTTP_REFERER'] . "', '" . $strTarget . "', '" . @$_GET['table'] . " - " . @$_GET['name'] . "')"; mysql_query($sql); ?>