I am developing a new system that needs to show upcoming collections data for the current week but the current week starts on Monday and ends on Sunday, I can’t seem to get the data returned for what I need, below is the query I currently have but the data is returning from today and up to 7 days
<?php
$hostname="localhost";
$username="username";
$password="password";
$db = "databasename";
$dbh = new PDO("mysql:host=$hostname;dbname=$db", $username, $password);
foreach($dbh->query('SELECT id, location, DATE_FORMAT(colldate,"%d/%m/%Y") AS colldate
FROM collections WHERE colldate > DATE_SUB(NOW(), INTERVAL 1 WEEK) ORDER BY id ASC') as $row) {
?>