$elements = $xpath->query(
"//message[(@sender ='".$from." and @receiver = '".$username."') or
(@receiver='unread' and @sender = '".$username."')]"
);
このコードの問題は何ですか? SELECT data WHERE ((sender == from AND receiver = username)OR(sender == username AND receiver = from))
私のxmlファイルからこのようなものが必要です