exclude an element in DB read conditions

ChDUP 06 Jun, 2014
Hi.

I have a DB read Conditions to read select options from a category.
my condition actually :
<?php
return array('catid' => '13','state'=>1);
?>

It works great.
But I would like to exclude one specific item.
How can I add this condition :
AND 'id' != 11 for example.

Thanks
GreyHead 06 Jun, 2014
Hi ChDUP,

Please try this
return array('id !=' => '11');

Bob
ChDUP 06 Jun, 2014
works great, thanks !
This topic is locked and no more replies can be posted.