<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sun, 19 May 2013 15:44:14 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPBuilder.com: Using the PEAR Pager Package to Paginate MySQL Results]]></title>
      <guid>http://www.phpdeveloper.org/news/16188</guid>
      <link>http://www.phpdeveloper.org/news/16188</link>
      <description><![CDATA[<p>
On PHPBuilder.com today there's a new tutorial about using the PEAR <a href="http://pear.php.net/package/Pager/">Pager</a> package to <a href="http://www.phpbuilder.com/columns/pear-pager/Jason_Gilmore04122011.php3">paginate through results</a> from a MySQL query. The package makes it easy to pass in a data set and handle the pagination requests and interface.
</p>
<blockquote>
Fortunately a great solution [for paginating data] is at your disposal which has been created expressly for this purchase. The PEAR <a href="http://pear.php.net/package/Pager/">Pager</a> package will not only handle all of the gory tracking details for you, but it can also create a linked navigation list which you can embed into the page as a navigational aide for the user. In this article I'll show you how to use Pager to easily paginate your database results in a structured and coherent way.
</blockquote>
<p>
He walks you through installing the packaged (thankfully easy with the PEAR installer) and how to use it on a simple array dataset of college names. From there he moves into the database realm, creating a simple table that stores the same information and pulling the results out and into the Pager functionality.
</p>]]></description>
      <pubDate>Wed, 13 Apr 2011 10:35:40 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[NETTUTS.com: How to Paginate Data with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/11896</guid>
      <link>http://www.phpdeveloper.org/news/11896</link>
      <description><![CDATA[<p>
<a href="http://nettuts.com/tutorials/php/how-to-paginate-data-with-php/">This new tutorial</a> from NETTUTS.com answers one of the more common question that gets asked by developers (usually those starting out) - how can I easily paginate my information?
</p>
<blockquote>
I can remember years ago when I first began coding in PHP and MySQL, how excited I was the first time I got information from a database to show up in a web browser. [...] As a developer, one problem I'm constantly faced with is taking a large set of information and making it easy to digest. Whether its a large company's client list or a personal mp3 catalog, having to sit and stare at rows upon rows upon rows of data can be discouraging and frustrating. What can a good developer do? Paginate!
</blockquote>
<p>
His method (<a href="http://nettuts.s3.amazonaws.com/200_pagination/code.zip">the source is here</a>) creates its own Pagination class that he extends for his specific example. The class allows the user to select now only which page they want to view but how many they want shown on each page.
</p>]]></description>
      <pubDate>Fri, 06 Feb 2009 07:58:32 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Paginating Database Records with the Code Igniter PHP Framework ]]></title>
      <guid>http://www.phpdeveloper.org/news/10913</guid>
      <link>http://www.phpdeveloper.org/news/10913</link>
      <description><![CDATA[<p>
DevShed continues their look at using the <a href="http://www.codeigniter.com">CodeIginiter</a> PHP framework to build a sample application in <a href="http://www.devshed.com/c/a/PHP/Paginating-Database-Records-with-the-Code-Igniter-PHP-Framework/">this latest part</a> of their series - a look a paginating the database results from a query.
</p>
<blockquote>
As you may guess, however, Code Igniter comes bundled with a robust set of core classes, which can be used to perform all sorts of clever tasks, such as working with databases, performing file uploads, validating user-supplied data, and so forth. [...] I'm going to show you how to improve the MySQL-driven application developed in the preceding tutorial, since it'll be provided with the capacity for paging database records, via the pager class included with Code Igniter.
</blockquote>
<p>
He starts by <a href="http://www.devshed.com/c/a/PHP/Paginating-Database-Records-with-the-Code-Igniter-PHP-Framework/1/">reviewing</a> the previous part of the series, pulling the data from MySQL, then shows how to push that through the pagination component to create a simple user listing.
</p>]]></description>
      <pubDate>Thu, 28 Aug 2008 07:57:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Debuggable Blog: How to do Group By conditions in Model find() calls in the CakePHP RC1]]></title>
      <guid>http://www.phpdeveloper.org/news/10396</guid>
      <link>http://www.phpdeveloper.org/news/10396</link>
      <description><![CDATA[<p>
On the Debuggable blog, <i>Tim Koschutzki</i> <a href="http://www.debuggable.com/posts/how-to-do-group-by-conditions-in-model-find()-calls:483fdc1c-8454-4593-a55e-37244834cda3">shows</a> how to  use grouping in your SQL statements with the find() method calls inside of a Model for an app.
</p>
<blockquote>
We have to thank <a href="http://mark-story.com/">Mark Story</a> and wluigi for working on group by conditions for Cake's Model::find() method. Up until now, you would have to add your GROUP BY stuff to string'ed conditions in order to support a group by statement, which could be very ugly.
</blockquote>
<p>
He has some <a href="http://www.debuggable.com/posts/how-to-do-group-by-conditions-in-model-find()-calls:483fdc1c-8454-4593-a55e-37244834cda3">code included</a> that compares the two methods - the newer of the two applying the 'group' option as a regular condition to the query object.
</p>
<p>
This functionality is currently only in the the Release Candidate 1 but will be included in the next major release.
</p>]]></description>
      <pubDate>Thu, 12 Jun 2008 08:48:09 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SaniSoft Blog: unbindModel() and paginate() gotcha in CakePHP 1.2]]></title>
      <guid>http://www.phpdeveloper.org/news/9750</guid>
      <link>http://www.phpdeveloper.org/news/9750</link>
      <description><![CDATA[<p>
<i>Tarique Sani</i> has <a href="http://www.sanisoft.com/blog/2008/03/03/unbindmodel-and-paginate-gotcha-in-cakephp-12/">pointed out</a> a little "gotcha" he came across when working in his CakePHP application a while back, specifically with the unbindModel and paginate methods.
</p>
<blockquote>
A small note to myself regarding a gotcha which I ran into today morning with the built in unbindModel method which lets you disassociate model relations on the fly.
</blockquote>
<p>
He sets up a situation where his model works correctly in one case but reverts back to the bindings it started with in another. He provides a way around it - an optional parameter that forces the CakePHP framework to treat things correctly.
</p>]]></description>
      <pubDate>Thu, 06 Mar 2008 12:59:00 -0600</pubDate>
    </item>
  </channel>
</rss>
