findAll to get what a field is not..

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
phpknewbee
Forum Newbie
Posts: 1
Joined: Wed Jul 02, 2008 9:02 pm

findAll to get what a field is not..

Post 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:
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

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

Post 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.
Post Reply