On Feb 28, 7:50 am, "AD7six" <[EMAIL PROTECTED]> wrote:
> On Feb 28, 10:15 am, "Christopher E. Franklin, Sr."<[EMAIL PROTECTED]> wrote:
> > I will try that as well.  I thought that's what the sanitize->sql()
> > did
> > .  Maybe I am mistaken.
>
> If you use a string constraint, you are basically on your own from
> cake's perspective. If you use an array constraint, cake should take
> care of it for you. I bet this works, or at the very least does not
> generate errors:
>
> $this->matchResult = $this->Classified->findCount(array(
> "Classified.text" = $ad->text,
> "Classified.editions" => $ad->editions)
> );

I don't think this works because it cuts the string at the first
newline.

>
> HTH,
>
> AD


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to