stats.phpTotal Hits: ';include ("$directorypath/includes/counter.php"); echo '<br />Gives you this error:include(\\INCLUDESRemove:$directorypath/Total Hits: ';include ("includes/counter.php"); echo '<br />In the demo "tiles" it doesn't have Total Hits. And one would be better off using SQL for hits.
PHP//--//-- Table structure for table `counter`//--mysql_query("CREATE TABLE IF NOT EXISTS `fas_counter` ( `counter` int(20) NOT NULL, PRIMARY KEY (`counter`)) ENGINE=MyISAM DEFAULT CHARSET=utf8;");//--//-- Dumping data for table `counter`//--mysql_query("INSERT INTO `fas_counter` (`counter`) VALUES(0);");#################################SQLCREATE TABLE IF NOT EXISTS `fas_counter` ( `counter` int(20) NOT NULL, PRIMARY KEY (`counter`)) ENGINE=MyISAM DEFAULT CHARSET=utf8;INSERT INTO `fas_counter` (`counter`) VALUES(0);################################Stats page?The Query.//Adds one to the hit counter mysql_query("UPDATE `fas_counter` SET counter = counter + 1");//Retrieves the current count$count = mysql_fetch_row(mysql_query("SELECT counter FROM `fas_counter`")); Total Hits: '.$count[0].' <br />
Wait why wouldnt we want all the stats to be in the same table?