Well, if you want to just show this week's data then you can generalise the problem by using the
DAYOFWEEK(date)
Returns the weekday index for date (1 = Sunday, 2 = Monday, ..., 7 = Saturday). These index values correspond to the ODBC standard.
mysql> SELECT DAYOFWEEK('1998-02-03');
-> 3
So, if you want to change the display every Monday, get the daynumber for today and use that minus 1 to get the date of the Monday and +6 to get the date of the Sunday.
if it is Wednesday then dayofweek returns 3, so Monday is
date_sub(curdate() - interval (dayofweek(curdate()) -1) day)
A messy looking expression that could be reformed thus
$SQL = "SELECT *, curdate() AS c, dayofweek(curdate()) AS d FROM $table_name WHERE date BETWEEN date_sub(c INTERVAL (d -1) DAYS) AND date_add(c INTERVAL (7-c) DAYS)";