Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-20-2008, 10:27 PM
Junior Member
 
Join Date: Mar 2008
Posts: 1
Default update table help

Hi,

I was wondering if someone could tell me how to update a record in a table with 2 properties in the where clause.

Code:
$updaterow = new Categories();

$data = array(
            'name' => $name,
            'description' => $description,
            'active' => $active,
            );
				
$where = $updaterow->getAdapter()->quoteInto('id = ?', $id);

$updaterow->update($data, $where);
I'm extending Zend_Db_Table_Abstract in my model.

So I want to check if ID = a value, and that userid = a value.


Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:17 AM.