This lovely piece of code will print everything from a selected database into a table. Useful when presenting just about any information from your databases.
A really simple script that gets the users IP and then runs it through apihost and returns their location.
In this quick tutorial I'll go through how to use some quick and simple commands in PHP to collect information about visitors, save it to the database. Probably about the first real application I made in PHP.
Part two in this tutorial, here I'll explain how we can use the setcookie() command of PHP to set a cookie, and how this will help to avoid filling the database with thousands of records. Just a short tutorial and in the next we will use a while loop to show all the info collected.
The final part of this tutorial. Continuing with basic PHP functions this time we'll be using PDO to connect to the database and print out all the information from the 'users' database, the one which is storing visitor info.