我有以下数据,用于显示MySQL数据参数date
$tgaw=date("Y-m-10");
$tgak=date("Y-m-09", strtotime("+1 months"));
我有以下查询:
$querylembur = "SELECT SUM(total) as subtotal FROM lembur WHERE tgl between ".$tgaw."
AND ".$tgak." AND staff =".$row['nama'];
$rslembur=mysqli_query($con,$querylembur);
$rowlembur=mysqli_fetch_array($rslembur);
我想要的结果是程序将显示从日期到现在的数据::$tgaw$tgak
波斯汪