Answer the question
In order to leave comments, you need to log in
How to add multiple values to SQL query?
Friends, hello everyone!
Tell me how to add a condition for selecting tags of two types (8 and 4), now only 8 is pulled up. Construction below:
$TagArt->where($db->quoteName('c.type') . ' = 8 AND ' . $db->quoteName('b.id') . ' IN (' . $LoadTagIrticle . ')');
Answer the question
In order to leave comments, you need to log in
$TagArt->where($db->quoteName('c.type') . ' IN (4, 8) AND ' . $db->quoteName('b.id') . ' IN (' . $LoadTagIrticle . ')');
do not know sql yet - write your questions in English
select* from table where id =8 or id=4
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question