keep track of view count php

Solutions on MaxInterview for keep track of view count php by the best coders in the world

showing results for - "keep track of view count php"
Alexa
04 Apr 2018
1$sample_rate = 100;
2if(mt_rand(1,$sample_rate) == 1) {
3    $query = mysql_query(" UPDATE posts SET views = views + {$sample_rate} WHERE id = '{$id}' ");
4    // execute query, etc
5}
6
similar questions
queries leading to this page
keep track of view count php