View Single Post
  #1 (permalink)  
Old 07-02-2008, 02:20 PM
ahmedrezk ahmedrezk is offline
Junior Member
 
Join Date: Jan 2008
Posts: 8
Default How I can increment field using zend_db??

Hi guys,

I have an application in zend framework structure, and I'm using zend_db, when I try to update table and increment field in this table, exception appear, I passes values as follow:

$data = array('lastresettime' => time(),
'verifiedflag' => '0',
'resetcount' => 'resetcount + 1');

when I try to execute it shows error.

when I try to use array as follows, it works propaply :

$data = array('lastresettime' => time(),
'verifiedflag' => '0');


Are there any one have an idea how to increment field in update zend_db statement??

thx

Last edited by ahmedrezk : 07-03-2008 at 08:05 AM.
Reply With Quote