my current code shows bet slips for last 7 days, but I need to show last 7 bet slips regardless of the date.
select
betsliphistory.MatchID,Team1.Name as HomeTeam ,
Team2.Name as AwayTeam, BetSlipID , userid , TipID ,
matches.ResultTipID ,betsliphistory.`Date`
from betsliphistory
inner join matches on betsliphistory.MatchID = matches.MatchID
inner join teams as Team1 on matches.HomeTeamID = Team1.TeamID
inner join teams as Team2 on matches.AwayTeamID = Team2.TeamID
where userid =".$user."
and betsliphistory.`Date` between CURDATE()-7 and CURDATE()
order by BetSlipID , MatchID;