Page 1 of 1

findAll to get what a field is not..

Posted: Wed Jul 02, 2008 9:11 pm
by phpknewbee
i have a findall function and i want to use it to get records with a specific column (avatar) that is not empty.

to get the records with empty avatars:

'Profile.avatar'=>'',

how about if i want to get the records with populated avatars?

i tried

'Profile.avatar'=>!'',

but that didn't work. thanks in advance. :banghead:

Re: findAll to get what a field is not..

Posted: Wed Jul 02, 2008 10:18 pm
by califdon
You might start by showing us your code. When you do, please post your code enclosed in [syntax=php]....[/syntax] tags, for readability.