Tracking all visits to the page
From: Thor <thunder_at_lightning.man>
Date: Tue, 14 Oct 2014 15:21:56 -0400
Message-ID: <nsydnT08As1i6qDJnZ2dnUU7-f-dnZ2d_at_giganews.com>
Date: Tue, 14 Oct 2014 15:21:56 -0400
Message-ID: <nsydnT08As1i6qDJnZ2dnUU7-f-dnZ2d_at_giganews.com>
$result = mysqli_query($link,"SELECT * FROM video1");
$rows = mysqli_num_rows($result);
$ipadd=$_SERVER['REMOTE_ADDR'];
mysqli_query($link,"INSERT INTO video1 (ipadd,hits) VALUES ('".$ipadd."',1)
ON DUPLICATE KEY UPDATE hits=hits+1")
or die(mysqli_error());
This much works as expected. How can I best retrieve the value that shows all of the visitors as well? Not just unique visitors. Received on Tue Oct 14 2014 - 21:21:56 CEST