<?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>Fri, 24 May 2013 20:12:55 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Gonzalo Ayuso's Blog: Populating datagrid techniques with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16605</guid>
      <link>http://www.phpdeveloper.org/news/16605</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Gonzalo Ayuso</i> looks at the code required to <a href="http://gonzalo123.wordpress.com/2011/07/18/populating-datagrid-techniques-with-php/">populate a jQuery data grid</a> with the records as pulled from a (MySQL) database.
</p>
<blockquote>
Today I want to speak about populating datagrid techniques with PHP. At least in my daily work datagrids and tabular data are very common, because of that I want to show two different techniques when populating datagrids with data from our database. Maybe it's obvious, but I want to show the differences.
</blockquote>
<p>
He uses "old school spaghetti code" rather than a framework to keep things simple and pulls the data from the database with a PDO connection. This information is then manually pushed into an HTML table and the data grid functionality is applied to it. The other method involves a little bit of JSON magic that the data grid library pulls in and populates for you, still appending rows to a table. 
</p>
<p>
He notes that the second method seems faster to the user since the page and table are rendered first, but it also comes at the cost of more than one HTTP request.
</p>]]></description>
      <pubDate>Tue, 19 Jul 2011 09:25:46 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Creating Data Tables With PEAR Structures_DataGrid]]></title>
      <guid>http://www.phpdeveloper.org/news/9510</guid>
      <link>http://www.phpdeveloper.org/news/9510</link>
      <description><![CDATA[<p>
<i>Cal Evans</i> has <a href="http://devzone.zend.com/article/3019-Creating-Data-Tables-With-PEAR-Structures_DataGrid">posted a tutorial</a> on the Zend Developer Zone (posted today) about using the <a href="http://pear.php.net/package/Structures_DataGrid">PEAR Structures_DataGrid package</a> to create quick and easy data tables.
</p>
<blockquote>
In this article, I'll be introducing you to the Structures_DataGrid package, showing you how it can be used to display structured data in tabular form. I'll be showing you how to hook it up to various data sources (including a CSV file, an RSS feed and an Excel spreadsheet), and how to format the resulting output so it's as pretty (or as ugly) as you want it to be.
</blockquote>
<p>
They <a href="http://devzone.zend.com/article/3019-Creating-Data-Tables-With-PEAR-Structures_DataGrid">talk about</a> what you'll need to get started (the different packages for different kinds of data) and some sample code to help you down the path to more attractive tables. There's even a bit touching on some of the more advanced features like exporting to Excel, pagination and data sorting.
</p>]]></description>
      <pubDate>Mon, 28 Jan 2008 16:19:30 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Iterators in the Simplest Sense - Traversing Data Structures in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/5035</guid>
      <link>http://www.phpdeveloper.org/news/5035</link>
      <description><![CDATA[Wrapping up their series on Iterators in PHP, DevShed has posted <a href="http://www.devshed.com/c/a/PHP/Iterators-in-the-Simplest-Sense-Traversing-Data-Structures-in-PHP-5/">Traversing Data Structures in PHP 5</a> - a look a combining embedded classes with the SPL to work through your data.
<p>
<quote>
<i>
Welcome to the final part of the series "Iterators in the Simplest Sense." In this set of articles, you'll learn the basic concepts of iterators in PHP 4 and PHP 5. The overall learning experience is strongly focused on the practical sense of the topic, so you can start quickly using iterators within your own PHP applications.
<p>
In this last article I'll explore the implementation of PHP 5 iterators, by utilizing some of the embedded classes that integrate the powerful SPL package. Thus you can learn quickly how to include these programming structures inside your PHP applications.
</i>
</quote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Iterators-in-the-Simplest-Sense-Traversing-Data-Structures-in-PHP-5/1/">jump right in</a> and start working with the SPL functions to create a simple, readable iterator class ("FileIterator"). They follow this with two examples building on the class - one that works with data from a text file, and the other from a MySQL database.]]></description>
      <pubDate>Thu, 23 Mar 2006 07:26:35 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Iterators in the Simplest Sense - Traversing Different Data Structures]]></title>
      <guid>http://www.phpdeveloper.org/news/4996</guid>
      <link>http://www.phpdeveloper.org/news/4996</link>
      <description><![CDATA[DevShed has posted the <a href="http://www.devshed.com/c/a/PHP/Iterators-in-the-Simplest-Sense-Traversing-Different-Data-Structures/">second part</a> in their "Iterators in the Simplest Sense" series - this time focusing on traversing different data structures.
<p>
<quote>
<i>
Welcome to the second tutorial of the series "Iterators in the simplest sense." Just in case you didn't know, this series introduces Iterators in PHP 4 - PHP 5, explaining their basic concepts, and teaches you how to use them in practical projects, which can be utilized as part of larger PHP applications.
<p>
By the end of this tutorial, I hope you'll have an accurate idea of how to use a generic Iterator structure. I will show how it is useful for traversing different data structures by providing specific implementations for each of the abstract methods defined within the base Iterator class.
</i>
</quote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Iterators-in-the-Simplest-Sense-Traversing-Different-Data-Structures/">look first</a> at extending the code that they had before by making an interator to work with a MySQL connection. They discuss how it will all work prior to coding (plan first, code later) before moving into the actual coding process and creating the class. The iterator, once extended, provides an interface between you and the normal MySQL functions, making it easier to handle the results from your queries (with things like "countAffectedRows" and "seekRow").]]></description>
      <pubDate>Wed, 15 Mar 2006 12:50:40 -0600</pubDate>
    </item>
  </channel>
</rss>
