for some reason my script is not adding any info to the database
my code
[code=php]
<?php
ob_start();
session_start();
include(‘common/connect.php’);
$to = $_GET[‘site’];
$browser = $_SERVER[“SCRIPT_URI”];
$ip = $_SERVER[‘REMOTE_ADDR’];
$banner = $_SERVER[‘HTTP_REFERER’];
$site = “http://www.slweb.co.nz/”;
$today = date(Ymd);
$add = “INSERT INTO `advertisers` (domain,ip,browser,site,to,date) VALUES (‘$banner’,’$ip’,’$browser’,’$site’,’$to’,’$today’)”;
$result = @mysql_query($add);
echo(mysql_error());
header(“Location: {$to}”);
?>
the table structure
[code]
Field Type Null Default
id int(10) No
domain varchar(255) No
ip varchar(255) No
browser varchar(255) No
site varchar(200) No
to varchar(80) No
date date No 0000-00-00
I also dont think most of the $SERVER vars are being set either?