hi all,

i am new to cake php can any 1 help me plz,


1).. $rsProfile = pg_exec($conn,"SELECT strprofilename FROM tblmusicprofiles
WHERE lngprofile = $PROFILE_ID");


$rsProfile = $this->Tblmusicprofiles->find(
            'all',
            array(
                 'conditions' => array(
                     'Tblmusicprofiles.lngprofile' => $PROFILE_ID
                 ),
                 'fields' => array(
                       'Tblmusicprofiles.strprofilename'
                 )
            )
        );


2).  $intProfileCnt = pg_numrows($rsProfile);


        $rsProfile = $this->set('rsProfile', $rsProfile);

        $intProfileCnt = $this->Tblmusicprofiles->find(
             'count',
             array('conditions' => array(
                       'Tblmusicprofiles.lngprofile' => $PROFILE_ID
                  ),
                  'fields' => array(
                        'Tblmusicprofiles.strprofilename'
                  )
             )
        );

 i am trying the above two statements , i got the out put of first , but i
am unable to find out the number of rows in a particular table with
particular colom . as write the above 2nd statement.


plz help out

thanks in advance,

regards,
chandu

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to