Answer the question
In order to leave comments, you need to log in
How to sort in SQL query in order of array numbers?
Good afternoon.
There is json like {"1":"44","3":5,"4":1,"5":123}. For the task, we convert it to an array using json_decode.
It is required to make an SQL query of the form
SELECT *
FROM wp_posts
WHERE ID IN (массив)
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