Answer the question
In order to leave comments, you need to log in
How to prepare query in PHP PDO with IN condition?
Hello.
Tell me, please, who knows.
On the backend, I connect to the sqlite database via PDO and form a query like:
select field1, field2, ...
from table1
where field1 in ('val1_1', 'val1_2', ... 'val1_N')
and field2 in ('val2_1', 'val2_2', ... 'val2_N')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question