Hi,
I've got the following script:
<?
/ ad_click.php: redir to site and count clicks /
require "ad_config.php";
if(!$id)
header("Location: $redir_site");
else {
$db = connect_to_db();
if($db == 0)
header("Location: $redir_site");
else {
$query = mysql_query("SELECT url, expiration_clicks, clicks_life FROM $banner_table WHERE id = $id;");
if(!$query)
header("Location: $redir_site");
else {
$banner = mysql_fetch_array($query);
if(!isset($count) || (isset($count) && ($count != 0))) {
// If $noexpire is not true and expiration_clicks >= clicks_life, expire the banner
if(($banner["expiration_clicks"] <= $banner["clicks_life"]) &&
($banner["expiration_clicks"] != 0)) {
$query = mysql_query("UPDATE $banner_table SET status = 'expired' WHERE id = $id;");
}
$query = mysql_query("UPDATE $banner_table SET clicks_life = clicks_life + 1, clicks_day = clicks_day + 1 WHERE id = $id;");
}
header("Location: ".$banner["url"]);
}
}
}
exit;
?>
What i need to know is how can i make the header() go to a blank html page?
Cheers,
maccam