I use the following zend code to select all the data from a table where verified = 1, and it works for me.
$table = $this->getDbTable();
$select = $table->select();
$select->where('verified = 1');
$rows = $table->fetchAll($select);
No. I want to select all the data from this table where verified is not equal to '1'. I tried the following methods, but it does not retrieve data.
$select->where('verified != 1');
$select->where('verified <> 1');
$select->where('verified != ?', 1);
The data structure for the checked column is:
Field: verified
type: varchar(45)
Collation: utf8_bin
NULL: Yes
Default: NULL
Any idea how to use the not equal operator in a WHERE clause in Zend? Thanks
source
share