我将使用以下 SQL 列出游戏玩家过去的活动:
$sql = "SELECT userID, gdtoken, time, type, gameid
FROM inouts WHERE userID ='$userid' AND (type = '$wintype1' || type = '$wintype2' || type = '$wintype3' || type = '$wintype4')
GROUP BY time, gameid ORDER BY time DESC";
但是结果没有
$wintype3
数据。
仅使用 $wintype3
时,我将从其中获取数据:
$sql = "SELECT userID, gdtoken, time, type, gameid
FROM inouts WHERE userID ='$userid' AND type = '$wintype3'
GROUP BY time, gameid ORDER BY time DESC";
我也没有收到错误消息。只是没有
$wintype3
的结果。
谢谢你的帮助。