当月开始
<?php echo date("Y-m-1");?>
当前月底
<?php echo date("Y-m-31");?>
and this is mysql query
$result = mysql_query("SELECT * FROM fuel where monthdate BETWEEN 'current month start' AND 'current month end' ORDER BY CAST(amount as SIGNED INTEGER) DESC LIMIT 4");
如何回应这个
<?php echo date("Y-m-1");?>
<?php echo date("Y-m-31");?>
在这个“{Ym-1}”和“{Ym-31}”之间
请帮我解决这个问题谢谢