Код: Выделить всё
Array ( [0] => 87 [1] => 175 [2] => 181 ...)
< /code>
Мой запрос таков: < /p>
(
SELECT user_id,COUNT(*) as total_count_ddh
FROM `64_income_details`
WHERE `user_id` IN $user_id
GROUP BY `user_id`
) as ddh
Код: Выделить всё
(
SELECT user_id,COUNT(*) as total_count_ddh
FROM `64_income_details`
WHERE `user_id` IN Array
GROUP BY `user_id`
) as ddh
Подробнее здесь: https://stackoverflow.com/questions/546 ... -sql-query
Мобильная версия