I have two queries on the same table that need to be joined into one mysqli result. The issue that is proving to be quite unique is ordering the individual statements, and THEN merging into one result, preserving the order, so I can iterate through each result.
Here is the simplified version of the query:
"SELECT number FROM items WHERE number > 0 ORDER BY number ASC"
"SELECT number FROM items WHERE number >= 0 ORDER BY number DESC"
So given a table with both positive and negative values, the result should be as such:
1, 2, 3, 4, 5, 0, -1, -2, -3, -4, -5
Then the results are put through a PHP while loop.