Insert a simple piece of code on your web page you will be able to analyse and monitor all the visitors to your website in real-time!
?php
if (!session_is_registered("counted")){
mysql_query("UPDATE tblcounter SET count=(count + 1) WHERE count_id=1");
session_register("counted");
}
$result=mysql_query("select count from tblcounter where count_id=1");
$row_count=mysql_fetch_row($result);
echo($row_count[0]);
?>
No comments:
Post a Comment