php - Page View Counter Counting Up Adding 2 Instead Of 1 -
this code iv written working like, reason when refreshing page counter adds 2 instead of 1, views column integer.
$updateviews = $db->prepare("update pages set views = views + 1 type = 'home'"); $updateviews->execute();
hope can help, cant seam find problem.
iv fixed it, im not sure iv done playing code on time , checked 1 time again today , works.. strange.
php mysql view counter
No comments:
Post a Comment