php - Searching table for null values -


i trying search users table determine whether field token null or not (indicating whether user activated, confirmed or not).

i using cakephp 1.3 , having problem php coding.

$this->paginate = array(     'user' => array(         'conditions' => array(             'user.token like' =>                 'is'.($this->data['user']['activated'] == 'yes' ? '' : 'not') . ' null'         )     ) ); 

i not familiar cakephp syntax. 'null' not null or ""value. string.

try using '' instead


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -