View Single Post
  #4 (permalink)  
Old 05-22-2008, 03:35 AM
jasonw jasonw is offline
Junior Member
 
Join Date: May 2008
Posts: 12
Default

They are equally easy. In fact, if you are using Zend_Db_Select objects to build your queries (You are, aren't you?), they are exactly the same.

It is worthwhile to mention that Zend_Db_Table queries return either Zend_Db_Row or Zend_Db_Rowset objects, which allow you to some very nice things such as:

PHP Code:
<?php
$bugs 
= new Bugs();
$row $bugs->fetchRow($bugs->select()->where('bug_id = ?'1));

// Change the value of one or more columns
$row->bug_status 'FIXED';

// UPDATE the row in the database with new values
$row->save();
I could go on and on, but I'd just be re-writing the documentation.
Reply With Quote