Re: Tracking all visits to the page

From: Thor <thunder_at_lightning.man>
Date: Tue, 14 Oct 2014 16:53:25 -0400
Message-ID: <4NidnVEF5uftEKDJnZ2dnUU7-TOdnZ2d_at_giganews.com>


On 10/14/2014 3:21 PM, Thor wrote:
>
> $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());
>
> mysqli_close($link);
>
>
> This much works as expected. How can I best retrieve the value that
> shows all of the visitors as well? Not just unique visitors.

Thank you for the help. Finally got it to work. I finally duplicated the insert into stuff and changed the values accordingly. Received on Tue Oct 14 2014 - 22:53:25 CEST

Original text of this message