Simple script for update statistics of your website or other usage

This is simple script for update statistics for your own website.
First we must have database/field at your database for statistics.
Ex : We add field “statistics” INT at your table “settings”

At file index, we must place code this :

mysql_query("UPDATE settings SET statistics=(statistics+1) WHERE ID=1");

That’s mean : script will count field statistics everytime file index.php loading. “Where ID=’1′” means we just update database settings that ID = 1. This is for only update statistics of ID 1

Respond to this post