Skip to content
Advertisement

select not equal too with loop in php

I have an array with 6 random id. How can I perform select * where id not equal to from my array in php?

I’m trying with a for loop but at first it returns everything except id[0], the second time everything except id[1] and so on.

My query look like this

JavaScript

my array is catogary_id and looks like

JavaScript

The loop

JavaScript

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement