I know this look REALLY REALLY horrid of a code. I am just learning.
Code: Select all
<?php
<img src="date("mdY".jpg)" alt="Yesterdays image />
?>Would I need to make a variable and then call upon that? and what would happen if I was at the start of a month how would the previous days code come out?
Also how would I alter the date() so I could take a list
img src="date("mdY")" alt="Tuesdays Thumbnail /> </br--
img src="date("md -1 Y")" alt="Mondays Thumbnail /></br--
img src="date("md -2 Y")" alt="Sundays Thumbnail /></br--