i want find a value in one of structure in database but my code not work properly
// $dir_id = 2;
// dirs (in database) = 1,2,3
SELECT * FROM `items` WHERE (id='$id' && $dir_id IN(`dirs`)) ORDER BY `id` DESC
but this code cant find 2 it just find 1 in dirs
how i can resolve this ?
In the
INyou will past the list of ids you want to match for exampleWith your example: