In MySQL table, i have a row for user groups. in this row i have user group numbers.
i’m trying to get result from all usergroups except 0 and 5.
I tried with this code:
$sql = $db->query("
SELECT
author FROM dle_photo_post where ug<'5' and moder ='0'
");
Problem is i don’t know how i can ignore 0 and 5.
1 Answer