PHP Class Presentation

As I mentioned in my first post I will present a number of PHP classes I have written to ease up some of the more repeating programming tasks you might come across. The classes will include a database class, paging class, record class and a form class with a custom validation script. The database, paging and record classes will be tightly incorporated with the MySQL database system. All classes will be written in PHP and the form script will be using a little bit of JavaScript and AJAX. The class names might not be so self-explained at the moment but once they are up on the wall they will be explained in more detail.


These scripts are created to make the most time consuming programming tasks a lot easier and a lot more fun. Throughout the series we want to extract the SQL scripting language and access the database via our record and paging class. We will be able to search for unique entries and get and set values. With the paging class we will be able to fast and easy create a paging layout without having to add 300 lines of code. The forms script will be really cool. We can create a new form and add one field at a time or use a result from the MySQL and generate a form based on various condition. By getting information from the MySQL database we will be able to get a really good auto generated form. If we are not happy with the result we can modify each and every field before we decide to print the form. With our JavaScript we can validate each field after a number of conditions. We will be able to add blobs to our form and save anything in the database.

I always strive to follow web standards and keeping the code clean and functional. Even though this first scripting series is almost done I’m looking forward to receive your feedback and comments on good and bad solutions. Solutions take many iterations until it’s good to go. If you think these scripts will be very interesting or just a little interesting hang on. We will start with the paging and database class and expand  the borders with the record and form class. Oh to be fair I have to give you the heads up about something. This is the very first time I’m blogging and actually writing down my thoughts and ideas. If you experience any thing weird or misleading you must say so!


About this entry