graphic is going to change based on the season or date we are in
It would also be helpful to have 3-4 examples of conditions you will be using. This way we can better judge exactly how you plan to approach this problem. Then we will be able to better judge the most efficient code.
Is there a reason you are set on using the time() function? I might suggest you use the date function.
Some code like this could go a long ways.
I would start by creating an array of months, img, and alt text
<?php
//This is just an example so you would of course include all the months
$constraints = array("Jan"=>array("image1.jpg", "Alt Text For Image 1"), "Feb"=>array("image2.jpg", "Alt Text For Image 2"), "Mar"=>array("image3.jpg", "Alt Text For Image 13"));
$currentMonth = date(M);
$text = '<tr><td align="center" valign="middle" colspan="2"><a href="decorations-party-accessories.html"><img src="images/' . $constraints[$currentMonth][0] . '" border="0" hspace="0" vspace="5" width="238" height="98" alt="' . $constraints[$currentMonth[1] . '"></a></td></tr>';
?>
I’ve not tested this so I do not know if it actually works, just thinking aloud here.
Thanks guys for all your input on this, I will have to review my options and test and play.
Thanks for the head start though and ideas on this.
I do not know why I am using the time() function, it was the one I chose at the time. The date one makes more sense or until I realize why I could not use it. LOL