I have the following date
data, which is used to display MySQL data parameters
$tgaw=date("Y-m-10");
$tgak=date("Y-m-09", strtotime("+1 months"));
and I have the following query:
$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);
The result I want is that the program will display data from date :$tgaw
to date: $tgak