Print Update Query in Zend

$data=array(‘table_amount’=>’table_amount’+$chips,’recent_chaal_amount’=>$chips);
$this->db->getProfiler()->setEnabled(true);
$this->db->update(‘ss_table’,$data,’id=’.$tableid);
foreach((array)$this->db->getProfiler()->getQueryProfiles() as $qry){
$this->_qryProf .= “\r\n”.print_r($qry,true).”\r\n”;
}

echo ‘<pre>’;print_r($this->_qryProf);
die;

 

$data = array('value'=>newZend_Db_Expr('value + 1000'));

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *