Wednesday, May 23, 2012

Update with a LIMIT in zend framework

I would like to do a update and place LIMIT 1 as precaution.
Here is my code:

$vals = array();
$vals['status'] = 'closed';
$where = $write->quoteInto('id =?', $orderID);

$write->update("order", $vals ,$where);

Where can i add a LIMIT into this query?

(looks like has been asked in the past but i hope someone out there has the answer)

No comments:

Post a Comment