hello how are yo guys i have this code for count visitors the question is how can i know number of visotors on the all pages on the website not on one main page or one page
i have these table
id
ip
date
oops i am sorry
<?php
$ip_on=$_SERVER['REMOTE_ADDR'];
$time_on=time();
$sel_on=mysql_query("select * from online where ip='$ip_on'");
$num_on=mysql_num_rows($sel_on);
if ($num_on==0){
$insert_on=mysql_query("insert into online values('','$ip_on','$time_on')");
}else {
$update_on=mysql_query("update online set
time='$time_on' where ip='$ip_on'
");
}
$time_on_out=$time_on-300;
$select=mysql_query("select * from online where time>'$time_on_out'");
$num_rows=mysql_num_rows($select);
echo $num_rows;
?>