If I have an array created on runtime dynamically[php] like $x[5]=[2,4,3,1,5] and a database table in mysql with PK values starting from 1 to 5 , and I want to sort the table "sql:select results query" to appear in sequence of the array $x[], what process I must follow ????
first 2 row, after 4 row, after 3 row, after 1 row, and last 5 row, in this array dynamic generation ....