harmor19
05-30-2007, 06:12 PM
I don't know what I'm doing wrong.
I want to make a query that will return results if the column "required" is 2 or 3 but the column "type" cannot be "input" or "textarea".
$showfields = $db->query_read("SELECT * FROM ".TABLE_PREFIX."profilefield
WHERE required = '2' OR required = '3'
AND (type != 'input' OR type != 'textarea') ");
It's returning row 6 even though the type is "textarea".
I want to make a query that will return results if the column "required" is 2 or 3 but the column "type" cannot be "input" or "textarea".
$showfields = $db->query_read("SELECT * FROM ".TABLE_PREFIX."profilefield
WHERE required = '2' OR required = '3'
AND (type != 'input' OR type != 'textarea') ");
It's returning row 6 even though the type is "textarea".