Jump to content

Views of a Page


Unholy Prayer

Recommended Posts

<?php

//If they are viewing a thread
if ($_GET['threadID']){
$threadID = $_GET['threadID'];

//update views in database
mysql_query("UPDATE threads SET views = views+1 WHERE threadID = '$threadID'");

}

?>

 

Something along the lines of that...

Link to comment
https://forums.phpfreaks.com/topic/41520-views-of-a-page/#findComment-201139
Share on other sites

Archived

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

×
×
  • Create New...

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.