|
|
|
|
|
|
![]() |
#12 |
Just because I don't care doesn't mean I don't understand!
Join Date: Feb 2004
Posts: 92
|
Hey gang,
Well, I tried using the POTD php that oast provided but just couldnt get it working. I am sure I am missing something simple. Plugged in the info as oast suggested as follows: <?php $pics=array(array('http://www.mydomain.com/images/mypic1.jpg',''http://www.mydomain.com/images/mypic1thumb.jpg','mypic1 alt text'), array('http://www.mydomain.com/images/mypic2.jpg','http://www.mydomain.com/images/mypic2thumb.jpg','mypic2 alt tex'), array('http://www.mydomain.com/images/mypic3.jpg','http://www.mydomain.com/images/mypic3thumb.jpg','mypic3 alt tex'), array('http://www.mydomain.com/images/mypic4.jpg','http://www.mydomain.com/images/mypic4thumb.jpg','mypic4 alt tex'), ); $today=date('z'); echo "<a href=\"{$pics[$today][0]}\"><img src=\"{$pics[$today][1]}\" alt=\"{$pics[$today][2]}\" border=\"0\" /></a><br />\n"; ?> The above was saved as" potd1.php Called it up on an index page with: <?php include("potd1.php"); ?> I am only getting the "infamous" blank box with red X, and no alt text. I actually only need this to show a full size pic and alt text. No need for the thumb array. An example would be a text link "click here for picture of the day" and this would go to a page with the full size picture. I attempted to adjust the scrip to show just a full size picture and alt text but no luck with that either. I am sure this is a fairly easy script, but I am not the best with php, still learning the basics here. I really appreciate all the help provided. I am sure I am just overlooking something simple here. Again, thanks for the all the help. Dunkin |
![]() |
![]() |
|
|