我尝试了这段代码,但它只获取了逗号
中最后一个值的值我在INVOICEVALUE = 1,2
它只获取2
$INVOICEVALUE = $_REQUEST["INVOICEVALUE"];
$VALUE = explode(',', $INVOICEVALUE);
foreach ($VALUE as $val) {
$invoiceselected = mysqli_query($link, "select SUM(INVOICE_AMOUNT) as AMOUNT,INVOICE_CODE,INVOICE_STATUS,PAYMENT_STATUS,INVOICE_TRANSACTIONDATE,INVOICE_UNITPRICE,CUSTOMER_ID,CUSTOMER_ID
from invoice where INVOICE_CODE ='" . $val . "'
AND INVOICE_STATUS='CLOSE' AND PAYMENT_STATUS=''
GROUP BY INVOICE_CODE");
}
答案 0 :(得分:1)