Hello reader's! If you have an array with multiple values to match with database coloumn. Then you can use IN statement in mysql but you have to explode the array first.
let's see the exampkle below:-
$findIN= implode(',', $YourArray); // first you need to explode the array in comma seperated
Now th Mysql query will go like this:-
SELECT * FROM galleries WHERE id IN ( $findIN)
The print of this query will like this
SELECT * FROM galleries WHERE id IN ( 23,24,25,25....)
0 Comment(s)