在mysqli中显示所有结果

时间:2018-08-31 02:46:37

标签: mysqli procedural

我有此查询,但只显示一个结果。

$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

0 个答案:

没有答案