$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 文件中需要这样的东西