I would probably do this.
1) have that white area be an iframe.
2) have this table
CREATE TABLE IF NOT EXISTS hitSites (
ID BIGINT NOT NULL auto_increment,
URL VARCHAR(255) NOT NULL,
Hits BIGINT NOT NULL,
PRIMARY KEY (ID),
UNIQUE URL (URL),
Index Hits (Hits)
)
3) browse.php is something like this
<?php
/**
DANGER WILL ROBINSON DANGER
this code was typed into the message board and
therefor most assuredly contains stupid syntax and
logic errors but it should get the point across.
**/
//assumption $URL is the url from the form.
$sql = "SELECT ID FROM hitSites WHERE URL=\"$URL\"";
$result = mysql_query($sql);
if(mysql_num_rows($result) > 0) {
$sql = "UPDATE hitSites SET Hits = (Hits + 1) WHERE URL=\"$URL\"";
mysql_query($sql);
} //end if
header("Location: $URL");
?>