Connected to MySQL database.
First of all let me remind you that this is my first attempt to write PHP code from the scratch ever. As it terns out it is not that bad compare to Parser programming language. Anyway I promised to show you all how my PHP code works with MySQL on this page.
As I mentioned in the title of this page I spiced up PHP code with some AJAX, so for those who has know no idea about it following code may seems to be very complicated. Due to the nature of AJAX I have to use at least to files, and I do. First one is "index.php" (you are looking at it right now) and a second one is "code.php". Both files contain code that queries database. Index.php is responsible for creation and deletions of table "person", it retrieves information from database when you want to edit records and connects all the JavaScript and AJAX scripts stored in "ajax.js". Code.php is pure PHP and it is responsible for processing data that comes from the form and displaying contents of table "person". For the purpose of this exercise I'm not creating a new database, since I already have one.
Now I need to figure out how to make it work properly in IE :).