只是无法让它发挥作用。我想检查该用户在过去 7 天内是否购买了 45 美元或更多的出价包。
$big_amount="45";
//check if the user has purchased bids
$strFind="SELECT * FROM `prepaypal` WHERE `memid`=\"$curmemid\" AND `success`='Y'
AND `pid`='0' AND `amount`>=\"$big_amount\" BETWEEN NOW() and DATE_SUB
(`date`, INTERVAL 7 DAY) ORDER BY `date` DESC LIMIT 1";
//echo $strFind;
$result=mysql_query($strFind) or die(mysql_error());
$row=mysql_fetch_array($result);
$bought_bids=$row['id'];