PHP file used on the serverside

This file is very simple, in retrospect to what could be done, one could virtually access any table, database, column or field given the imagination and adequate time. My goal was to simply see if I can do it.