Location: PHPKode > projects > Modular Site Manager > htdocs/in.php
<?php
include "inc/functions.inc.php"; 
if (isset($_GET['id'])) {
	$mysql = new mysql(DB_MAIN);
	$id = $_GET['id'];
	$select = $mysql->select(PRE."affiliates", "id='".$id."'", "id");
	$r = mysql_fetch_assoc($select);
	$c = $r['clicksin'];
	$c2 = $c+1;
	$sql = $mysql->update(PRE."affiliates", "clicksin='".$c2."'", "id='".$id."'");
	header('Location: '.SITE_URL);
} else {
	echo('<table align="center" width="200" border="1" bordercolor="#000000" cellspacing="0" cellpadding="0">');
	echo('<tr><td align="center" class="header"><font size="2"><strong>Site Error:</strong></font></td></tr>');
	echo('<tr><td bgcolor="#003156" align="center">Not enough variables passed to execute this page</td></tr>');
	echo('</table>');
}
$mysql->close();
?>
Return current item: Modular Site Manager