Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
Using Visitor Objects with MySQL Data Sets in PHP 5
Aug 16, 2006 @ 21:11:58

DevShed is continuing its series on using Visitor objects in PHP5 with this new tutorial today, a look at uisng them in relation to MySQL and sets of data inside.

So far, implementing visitor objects with PHP is indeed a educational process, which helps to extend even more the boundaries of the vast arena of pattern-based programming. Based on this premise, in the course of this last article, I'll expand the application of the visitor pattern by developing a slightly more realistic example. It will show you how to use visitors objects to establish a direct relationship between a MySQL processing class and a pagination mechanism.

They start by establishing an interaction between the visitors and the data in the MySQL database, providing the complete code for the class and the creation of the visitor objects. The wrap it up with a look at the creation of a pagination class, linking the display of a "page" of records to each of the visitors of the site.

tagged: mysql php5 visitor object pagination tutorial part3 mysql php5 visitor object pagination tutorial part3

Link:


Trending Topics: