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
Post a Comment