yeah just a simple script that counts how many hits per day you get...... just need to add it and the database =)
#########################################
# This is the actual Script!!!! #
#########################################
<?
require("config.php");
$date = date(d).'-'.date(m);
$result1 = mysql_query("SELECT hit FROM hits WHERE `date` = '".$date."'");
if ($result=mysql_fetch_array($result1)) {
$newhit = $result['hit'] + 1;
echo "Hits for ".$date.": ".$newhit;
mysql_query("UPDATE hits SET `hit` = $newhit WHERE `date` = '".$date."'");
}else {
echo "Creating";
mysql_query("INSERT INTO hits VALUES('$date', '1')") or die(mysql_error());
}
?>
#########################################
# This is the Database Setup!!! #
#########################################
CREATE TABLE `hits` (
`date` VARCHAR( 11 ) NOT NULL ,
`hit` VARCHAR( 5 ) NOT NULL
) ENGINE = MYISAM