News Feed
Jobs Feed
Sections




News Archive
DevShed:
Utilizing the LIMIT Clause with the Active Record Pattern
March 31, 2009 @ 12:58:35

DevShed continues their series on the Active Record pattern in PHP with this new article implementing the LIMIT statement on your abstraction class.

In its current version, it'll be able to accomplish only a few basic database operations tasks. Therefore, this fifth article of the series will be focused on enabling the class to fetch database rows by using the LIMIT clause.

They add the LIMIT clause as a part of its own function and its own SQL statement. You define the number of rows to fetch, the table to fetch it from and the offset to start from. The SQL is passed off to their fetchRow statement and the results are returned in an array.

0 comments voice your opinion now!
activerecord design pattern clause limit abstraction layer database


blog comments powered by Disqus

Similar Posts

Martin Psinas' Blog: Switching to PDO

Developer Drive: Create Your Own CRUD App with MySQL and PHP

JSLabs Blog: How to survive the digg effect

Code2Learn.com: Generating PDF files from Database using CodeIgniter

Gonzalo Ayuso's Blog: Speed up PHP scripts with asynchronous database queries


Community Events











Don't see your event here?
Let us know!


example code opinion tool conference phpunit development functional zendframework2 introduction testing community interview podcast unittest object language framework release series

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework