Jump to content

Archived

This topic is now archived and is closed to further replies.

feri_soft

Views counter

Recommended Posts

How to create a simple view counter?

CAn it work just by adding one query to update views in the beggining of the file??

Share this post


Link to post
Share on other sites
The problem is that i have a search query and it returns some results and then when click i go to another file and vie the details using get command...i am not sure where to put tha update query

Share this post


Link to post
Share on other sites
You can put it at the very start of the file.

Orio.

Share this post


Link to post
Share on other sites
i am sure this is correct?

little example.
[code]
<?php
$query-"update counter set counting=counting+1 where id='$id'";
$result=mysql_query($query);
?>
[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.