<?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>Wed, 19 Jun 2013 20:29:10 -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>
  </channel>
</rss>
