Try here: http://book.cakephp.org/view/809/find-count
On Fri, Apr 30, 2010 at 1:13 PM, Narendra Padala <[email protected]>wrote: > Hi...Everyone! > > I am new to cakephp , I am using postgres sql, i have problem like > this i am able to convert this psql query to cake but > pg_numrows() is i am not able convert. so please any one can help me > out. > > > $rsCDLog = pg_exec($conn, "SELECT dtmcreated FROM tblcdlog WHERE > blnsuccess = '1'"); > > $rsProfile = $this->Tblcdlog->find('all', > array('conditions' => array( > > 'Tblcdlog.blnsuccess' => 1), > 'fields' => array( > > 'Tblcdlog.dtmcreated'))); > > > $intCDLogCnt = pg_numrows($rsCDLog); > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<cake-php%[email protected]>For > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
