Query to get value from two columns

cooftesonee

New Member
I need to write a query to retrieve values from two columns using mysql tableMy table has the following strucutre\[code\]| ID | to_user_id | from_user_id | message | datetime | | 1 | 21 | 07 | hi | 2012-05-10 04:13:01 | | 2 | 07 | 21 | hello | 2012-05-10 04:17:51 | \[/code\]I want to write a query to get both messages user send and get in single query
 
Back
Top