Monday, December 29, 2008

Re: count no of rows.

Your brackets aren't balanced. One of the earlier replies had the
correct syntax though.

Try:
$count = $this->Project->Message->find('count', array
('Message.project_id' => $MyProjectId));


On Dec 29, 6:09 am, piyushsharmajec <piyushsharma...@gmail.com> wrote:
> Hai,
>  Thanks for your help however i find error as
>  unexpected T_DOUBLE_ARROW
>
> when i paste code
> "$count =
> $this->Project->Message->findCount(array('Message.project_id')=>$MyProjectId);
> "
>
> Thanks
>
> Piyush
>
> --
> View this message in context:http://www.nabble.com/count-no-of-rows.-tp21183253p21199435.html
> Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
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: