Author: Dennis Pallett
An Extensive Examination of the PHP:DataGrid Component: Part 1
Introduction
One of the most common tasks in PHP is retrieving data from a database table, and creating a HTML table to output that data. It's done in almost every project, and it's usually a really boring task, because the
It often looks some like this (in pseudo-code):
Create database connection
Get data from a table
Output table header ( Loop through each records
... output tr's and td's ...
Output table footer ( )
It's a sad fact, but we've already written code like the above hundreds of times. And for every project and script, you have to do it again, again and again.
But why not use a solution that can do it for us? That's exactly what PHP:DataGrid is.
What is PHP:DataGrid?
PHP:DataGrid is the answer to the above problem. It's basically a PHP component, that's very similar to the ASP.NET DataGrid control. PHP:DataGrid will take care of all the boring tasks leaving you the easy and interesting parts. Very little PHP code is actually necessary for PHP:DataGrid, and you can change its looks and layout using simple HTML tags.
The only downside of PHP:DataGrid is that it's not free. You have to purchase it from TPG PHP Scripts, but it's $24.99 for a Developer license, which grants you permission to use it in all your personal projects, and I certainly believe that the advantages far outweigh the cost. Even only the time saved by ( Next Page )
Rate this article:




(No ratings yet)
