Simple php application that tracks visitor information
Create the database user and grant privileges to the user.
CREATE DATABASE visitTracker;
CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON visitTracker.* TO 'user'@'localhost';
FLUSH PRIVILEGES;
On any page you want to track visitors just add this snipit and replace the name of the page
<?php
include_once('visitTracker/visitTracker.php');
$visitTracker = new Page("Home");
$visitTracker->track($_SERVER);
?>