PHP - HIT COUNTER USING MYSQL

Here's how to host your own hit counter using PHP and MySQL, including the exact time of counts.

Use phpMyAdmin to create a new table in your MySQL database. Or if you are comfortable with PHP, write a script instead.
Open your phpMyAdmin then click on your database then on SQL at the top.
In that box type:

Now that the table is all set up, you need to add some script to your page.
Open up your homepage and in your head tags enter this code:

This snippet goes where you want the counter to appear on your page:

Note: This is how I perform the counter script on my websites. There may be other, and perhaps better ways around. I wrote this myself and it does what I need it to do :)