ExecuteQuery($check);
if (mysql_num_rows($cresult)==1)
{
$sql="insert into track(url,cdate,referer,ipaddress,sitereferer,dateIST) values('". $url ."',CURDATE(),'". $ref ."','". $ip ."','". $sref ."','". $dateIST ."')";
$rs = $mysqlconnection->ExecuteQuery($sql);
header("Location:". $url);
}
else
{
header("Location:https://www.indianclicks.com");
}
?>
/*
ExecuteQuery($sql);
if($url=="www.aim-cc.com")
header("Location:aim/admain.htm");
else
header("Location:". $url);
?>
*/