PHP: echo if this week. Please Help?

  • Thread starter Thread starter lily150
  • Start date Start date
L

lily150

Guest
Hi,
This is a piece of code from a registration system. .$dates['Date'] is the date the register was taken (this will be on a loop to display results). .$dates['Present'] is a yes or no (to indicate if the person was in)
I am having problems with getting this to display only the results for this week.

Can anyone help please.

echo "<B>".$dates['Date']."</B>"." attended <B>Science</B> "."<B>".$dates['Present']."</B>";
echo "<br>";
 
Back
Top