include"cpLinksConfig.php";
$i = $_REQUEST['size'];
$size = $i;
$id = $_REQUEST['id'];
$myID = $id;
//$myPass = "mypass";// admin pass
?>
document.write('
')
if (empty($i)) { $i = "150";}
$connection = @mysql_connect("$host", "$user", "$pass") or die("Couldn't connect today.");
$db = @mysql_select_db($data, $connection) or die("Couldn't select database.");
$getlinks ="SELECT * FROM hoppers WHERE ID = $myID";
$getMylinks = mysql_query($getlinks,$connection) or die("coundn't verify link database 10");
$num_rows = mysql_num_rows($getMylinks);
if(!empty($num_rows)) {
while ($row = Mysql_fetch_array($getMylinks)) {
$newID = $row['ID'];
$count = $row['display'];
$myurl = $row['url'];
}
$count=($count+1);
$sql = "UPDATE hoppers SET display='$count' WHERE ID=$myID";
$result = @mysql_query($sql,$connection) or die("Couldn't update count2.");
////////////
$id = $_GET['site_id'];
$imageFile = 'images/'.$i.'.jpg';
}
// do track
mysql_close();
?>