Location: PHPKode > projects > Modular Site Manager > htdocs/out.php
<?php
include "inc/functions.inc.php"; 
if (isset($_GET['id'])) {
	$mysql = new mysql(DB_MAIN);
	$id = $_GET['id'];
	$select = $mysql->select("site_affiliates", "id='".$id."'", "id");
	$r = mysql_fetch_assoc($select);
	$a = $r['address'];
	$c = $r['clicksout'];
	$c2 = $c+1;
	$sql = $mysql->update("site_affiliates", "clicksout='".$c2."'", "id='".$id."'");
	header('Location: '.$a);
} else {
	echo('<div style="text-align:center; font-weight: bold;">Site Error:</div><br />');
	echo('<div style="text-align:center;">Not enough variables passed to execute this page</div>');
}
$mysql->close();
unset($mysql);
?>
Return current item: Modular Site Manager