You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$query="SELECT * FROM messages WHERE (to_id=".$_SESSION['id']." AND from_id=".$_POST['to_id'].") OR (from_id=".$_SESSION['id']." AND to_id=".$_POST['to_id'].")";