Article View: pl.comp.lang.php
Article #220099[ZendFramework] pola wyliczeniowe w DbTable->update()
From: Marcin
Date: Tue, 11 Aug 2009 09:21
Date: Tue, 11 Aug 2009 09:21
11 lines
1215 bytes
1215 bytes
Witam,
pisze bo jakos google nie potrafie skutecznie spytac. Jak sprawic zeby
taki kod zadzialal? Chodzi oczywiscie o pola wyliczeniowe...
$data = array('vote_count_total' => 'vote_count_total + 1',
'vote_count_last30' => 'vote_count_last30 + 1');
$this->getDbTable()->update($data, array('id = ?' => $id));
Wielkie dzieki za pomoc, pozdr, m.
Technical Details
Message-ID:
<h5rdak$83j$1@atlantis.news.neostrada.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.neostrada.pl!nemesis.news.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.neostrada.pl!nemesis.news.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail From: Marcin <md23128@sgh.waw.pl> Newsgroups: pl.comp.lang.php Subject: [ZendFramework] pola wyliczeniowe w DbTable->update() Date: Tue, 11 Aug 2009 11:21:23 +0200 Organization: TP - http://www.tp.pl/ Lines: 11 Message-ID: <h5rdak$83j$1@atlantis.news.neostrada.pl> NNTP-Posting-Host: cpx158.neoplus.adsl.tpnet.pl Mime-Version: 1.0 X-Trace: atlantis.news.neostrada.pl 1249982613 8307 83.31.229.158 (11 Aug 2009 09:23:33 GMT) X-Complaints-To: usenet@news.neostrada.pl NNTP-Posting-Date: Tue, 11 Aug 2009 09:23:33 +0000 (UTC) User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit