News Feed
Jobs Feed
Sections




News Archive
DevShed:
Handling Result Sets and More with PDO Objects in PHP 5
June 04, 2007 @ 13:47:00

DevShed continues their series looking at using PDO objects in PHP with part two, a look at handling the result sets in your PHP5 code.

All in all, at this point you hopefully learned how to use some basic methods included with this PHP extension, but logically you may want to learn a few additional ones, so you can have a more polished picture of the overall functionality of the library in question. [...] I'm going to show you how to use the PDO extension to handle different database result sets in all sort of clever ways, in addition to performing some common tasks, like counting rows and columns as well.

He starts with an example of the best place to start - fetching the results set from the database backend. In these simple examples, use the prepare, execute and fetch functions to get the results. Taking it one step further, they move into the use of the fetchAll function to grab columns and rows in the results as well.

0 comments voice your opinion now!
php5 pdo resultset tutorial php5 pdo resultset tutorial


blog comments powered by Disqus

Similar Posts

Matthew Weier O'Phinney's Blog: Creating Re-Usable Zend_Application Resource Plugins

HowTo Forge: Installing The PHP-MemCache Module On CentOS 5.0

DevShed: Cleaning up Array Elements, POST and GET Requests with Filters in PHP 5

NetTuts.com: Mockery: A Better Way

PHPMaster.com: List Files and Directories with PHP


Community Events









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


language release functional opinion code api event testing unittest podcast zendframework2 example community framework development tool object composer introduction interview

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