Add the other conditions as a string, e.g.,

$sqlConditions = "myfield IS NULL AND myfield2 = 'blarg'";

On 4/30/07, codecowboy <[EMAIL PROTECTED]> wrote:
>
> what if that is only one of the conditions?
>
> On Apr 29, 9:53 pm, Sergei <[EMAIL PROTECTED]> wrote:
> > $sqlConditions="myfield IS NULL"
> >
> > and that's all.
> >
> > Sergei.
> >
> > On 30 апр, 10:03, codecowboy <[EMAIL PROTECTED]> wrote:
> >
> > > Hi All,
> >
> > > Does anyone know how to check if a value is null when using the model-
> >
> > > >find($sqlConditions, ., ., .) function?
> >
> > > I know that sql syntax is :
> >
> > >  select * from users where fieldname is NULL
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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