Hey I'm trying to use php to display an image for each day of the week. I've used the date("D") function to do this but my code doesn't seem to be working. Can someone please take a quick look at it?
<?php
$today = date("D");
if ($today == "Sun")
echo "Today is Sunday" <img src = 'C:\Users\A1\Documents\2016\Semester 2\ISYS 227\Tutorials\images\sun.jpg'/>;
elseif ($today == "Mon")
echo "Today is Monday. <img src = 'C:\Users\A1\Documents\2016\Semester 2\ISYS 227\Tutorials\images\mon.jpg'/>;
elseif ($today == "Tue")
echo "Today is Tuesday". <img src = 'C:\Users\A1\Documents\2016\Semester 2\ISYS 227\Tutorials\images\tue.jpg'/>;
elseif ($today == "Wed")
echo "Today is Wednesday". <img src = 'C:\Users\A1\Documents\2016\Semester 2\ISYS 227\Tutorials\images\wed.jpg'/>;
elseif ($today == "Thur")
echo "Today is Thursday". <img src = 'C:\Users\A1\Documents\2016\Semester 2\ISYS 227\Tutorials\images\thur.jpg'/>';
elseif ($today == "Fri")
echo "Today is Friday. <img src = 'C:\Users\A1\Documents\2016\Semester 2\ISYS 227\Tutorials\images\fri.jpg'/>;
elseif ($today == "Sat")
echo "Today is Saturday. <img src = 'C:\Users\A1\Documents\2016\Semester 2\ISYS 227\Tutorials\images\sat.jpg'/>;
else
echo "I do not know the day of the week.";
?>