0

it passed some time since I wrote queries and I'm in a pickle.

I have this code:

   SELECT * FROM `products` WHERE `id_category` IN (" . implode(',', array_map('intval', $categories)) . ") ORDER BY `id` DESC

The problem is that id_category is a VARCHAR like (1,2) or (2,6,8).

Is there a way to select the products ? Thank you in advance!

Theo I.
  • 231
  • 2
  • 4
  • 6

0 Answers0