$today = getdate(); $mday = $today['mday'];
echo "<img src=http://$imagearray[$mday]'>";
This isnt working for some reason. but When I check the mday array it is working fine!
What do you expext it to do? The browser reads your code as
<img src=http://(A NUMBER)>
Noe $mday has the day of the month as its value, meaning 1 thru 31 depending on the month.
Well, I tried to simplify it to much. Basically I can echo a number if I use:
echo "$mday";
but this $array[$mday] will not work
try echo $array["$mday"];
echo $mday;
echo "<img src='http://mysite.com/images/$array[$mday]'>";
this will display as:
<img src='http://mysite.com/images/..