当前这是我的代码,但我如何迭代整个月直到客户完成付款
$line4 = mysql_query("SELECT DAY(paydate) AS PayDay,clientid
FROM transactions
where transactions.clientid=client.clientid AND transactions.product=invoices.product AND
DAY(transactions.paydate)> 10 and YEAR(transactions.paydate) = 2012 AND
MONTH(transactions.paydate) = 3 AND transactions.balance > 0
order by client.clientid");