Quote:
I am only getting the "infamous" blank box with red X, and no alt text.
|
How many pics did you have in the array? Don't forget today is the 13th day of the year so it will show the 13th picture in the array.
Also, you have an extra apostraphe in your first thumb url, this will cause an error.
To just show a pic on a page corresponding to the day of the year:
PHP Code:
<?php
$pics=array(
array('/images/mypic1.jpg','mypic1 alt text'),
array('/images/mypic2.jpg','mypic2 alt text'),
array('/images/mypic3.jpg','mypic3 alt text'),
array('/images/mypic4.jpg','mypic4 alt text'),
);
$today=date('z'); // z gets the day of the year, so need 365 pictures in above array
echo "<img src=\"{$pics[$today][0]}\" alt=\"{$pics[$today][1]}\">";
?>