News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

phpRiot.com:
Fetching Data With Zend_Db
April 07, 2010 @ 11:13:22

Quentin Zervaas has posted a new tutorial on phpRiot.com today with a quick look at using Zend_Db to pull information out of your database.

In this PhpRiot Snippet I will show you a couple of different ways to fetch data when using the Zend Framework's Zend_Db component. Zend_Db is a useful database abstraction class that comes with the Zend Framework. This article assumes you have already established a database connection and you have tables to select data from.

They show you how to fetch a single value from a table, grab all of the records from a specific column, getting more than one column and grabbing all of the contents of a table and returning them to your script with a "fetchAll" method call.

0 comments voice your opinion now!
zenddb tutorial database zendframework


blog comments powered by Disqus

Similar Posts

DevShed: Adding CSS to Handling Views with CodeIgniter

Rob Allen's Blog: Updated tutorial for Zend Framework 2 beta 1

Pádraic Brady's Blog: Complex Views with the Zend Framework - Part 3: Composite View Pattern

Matthew Weier O'Phinney's Blog: Proper Layer files when using Dojo with Zend Framework

PHP and Me Blog: Use Phing to Update your SVN-Version-Controlled Website Automatically, Through FTP


Community Events

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


install example php7 voicesoftheelephpant series version performance extension api conference framework library laravel community podcast introduction opinion release interview symfony2

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