检查一个月内是否添加了记录

时间:2014-09-08 13:55:52

标签: php mysql transactions

当前这是我的代码,但我如何迭代整个月直到客户完成付款

$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");

0 个答案:

没有答案