Q:

How to show result without category ID

I have categories 1,2,3,4,5,6,7
How to show all results from table 'news' without category 3..?
tnx.
`id` int(20) NOT NULL AUTO_INCREMENT,
`title` varchar(256) NOT NULL,
`content` longtext NOT NULL,
`category` int(20) NOT NULL,

A:

Very simple just simply use != 3.
SELECT * FROM news WHERE category != 3

