<?php
include_once \'fnc.php\';
$ref = filter($_GET[\'ref\']);
$url = filter($_GET[\'url\']);
$klik=mysql_query(\"SELECT * FROM `link` WHERE `site`=\'$url\'\"
;
$klik1=$klik[\'klik\'] + 1;
$klik0=$klik[\'klik\'] - 1;
mysql_query(\"UPDATE `link` SET `klik` = \'$klik1\' WHERE `site` = \'$ref\' LIMIT 1\"
;
mysql_query(\"UPDATE `link` SET `klik` = \'$klik0\' WHERE `site` = \'$url\' LIMIT 1\"
;
header(\'Location: http://\'.$url.\'\');
?>
ошибка гдето тут, начиная с 5 строки