I want to pass a POST dynamic array of type:
array(2) { [0]=> string(1) "1" [1]=> string(1) "3" }
For an SQL query that returns multiple results depending on the string values in the array
Select nome, count(avaliacao) FROM tabela WHERE '1'
Select nome, count(avaliacao) FROM tabela WHERE '2'
And the result of the query will be:
Array (2) ([result 1] = > 10, [result 2] = > 13)
I have already tried with implode
and SQL IN
but returns only the total of count
of 1 and 3.