Friday, April 30, 2010

Re: how to convert postgresql $intCDLogCnt = pg_numrows($rsCDLog); function into cake

Try here: http://book.cakephp.org/view/809/find-count


On Fri, Apr 30, 2010 at 1:13 PM, Narendra Padala <crazycakephp@gmail.com> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: