Friday, May 10, 2013

Re: searching users table with token = NULL

http://stackoverflow.com/questions/16470035/searching-table-for-null-values


Am Donnerstag, 9. Mai 2013 12:37:15 UTC+2 schrieb Chris:
hi guys,... can anyone help please,... 

I trying to search users table werther's user token IS NULL or NOT (what it means is user activated, confirmed or not) 
having some problem with coding,... 

        $this->paginate = array('User' => array('conditions' => array('User.token LIKE'=>'IS'.($this->data['User']['activated'] == 'yes' ? '' : 'NOT') . ' NULL' )));

thanks in advance 
chris

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate