I want these two SELECT queries to give one result and then i want to order it by date_time
SELECT 1:
"SELECT * FROM `table` WHERE `f_id` = '$uid' AND `t_id` = '$pid'"
SELECT 2:
"SELECT * FROM `table` WHERE `f_id` = '$pid' AND `t_id` = '$uid'"
I tried to put it in one WHERE clause but it's impossible, I also tried to put them in sub-query but that made SELECT 2 to join right SELECT 1 :/ I want ONE output array of these two queries, ordered by date_time
.
How is it possible?