我有此查询,但只显示一个结果。
$strSQL = "SELECT t1.*, t2.*, (SUM(t2.ca_in) + SUM(t2.ca2_in)) as Total
FROM agentName as t1
LEFT JOIN transPayment as t2
ON t1.agentID = t2.payID
WHERE t2.stat='FTW' AND t1.agentID = '".$_GET["agentID"]."'";
如何显示所有带有agentID的内容?目前,agentID过多。
示例agentID = 7