Ok, I have a page where if you click a url, it takes you to red.php. On red.php you have the following code:
<?
++$key;
include('db/dbconnect.inc');
$ip = $_SERVER['REMOTE_ADDR'];
$ip_query = @mysql_query("SELECT * FROM logfile WHERE Category = '$category' AND SubCategory = '$productname' AND Product = '$filter' AND Keyword = '$keyword' AND Position = '$key' AND IPaddress = '$ip'");
if (mysql_num_rows($ip_query) < 1) {
mysql_query("insert into logfile(Category, SubCategory, Product, Keyword, Position, Date, Time, Testcode, IPaddress) values('$category', '$productname', '$filter', '$keyword', '$key', curdate(), curtime(), '$test', '$ip')");
}
$moveit=urlencode($ad["CLICKURL"]);
header('location: '.$moveit);
?>
But on that page I cannot see anything that shows that it exists. Any ideas?