... in a class extending Zend_Db_Table
[code language="php"]
$db = $this->getAdapter();
....
$db->update('table', array('views' => new Zend_Db_Expr("views + 1")), 'id = ' . $id);
....
[/code]
Referral Note: When you purchase through a referral link (if any) on this page, we may earn a commission.
If you're feeling thankful, you can buy me a coffee or a beer
Great hint! I just was looking for it ! Thanks a lot guy !
Thanx a Million times mate...it was of great help....