Complex data ordering...
Posted
by Povylas
on Stack Overflow
See other posts from Stack Overflow
or by Povylas
Published on 2010-05-16T12:18:51Z
Indexed on
2010/05/16
12:20 UTC
Read the original article
Hit count: 180
Hi,
I have one tables ids in an array and they are ordered in the way I want and I have to select data from another table using those ids and in a order they are listen in the array.
Pretty confusing but I was thinking of two solutions giving ORDER BY parameter the array but I do not know if that possible and another is to get all the necessary data and then turn it to array (mysql_fetch_assoc) then compare those two and somehow order the new array using the ids array. But I also do not know how to do this...
Any ideas?
© Stack Overflow or respective owner