I want to show the page views in a news site. That's why there is a cell name views.
I am trying the codes
$sql = "UPDATE posts SET views=views+1 WHERE id=17184";
in the singlepage.php page. But it's not working. Where to use these codes?
Some points for more detail...
I want to increase the value of views by 1 in every reload/refresh of the page singlepost.php
When someone click on the links from index.php then singlepost.php open with the detail of that link
Let's see where I am using the codes and how I am using...
$sql = "UPDATE posts SET views=views+1 WHERE id=17184";