RE: [PHP] If statements and images

From: Date: Wed, 15 Nov 2000 05:41:44 +0000
Subject: RE: [PHP] If statements and images
Groups: php.general 
Request: Send a blank email to php-general+get-25365@lists.php.net to get a copy of this message
I have no idea what you asked but echo and print are not diferent at all. guessing your question I would do this: $day = 'Mon'; echo $day.'day.png'; if you do it so then you MUST have a good system to call all of your graphics and know that the variables are called equally to fit into the graphic file names. Cheers, Maxim Maletsky -----Original Message----- From: Mike Tuller [mailto:mitull01@willy.wsc.edu] Sent: Wednesday, November 15, 2000 2:33 PM To: php Subject: [PHP] If statements and images I've been wanting to display the day of the week as an image within Flash, and the only examples I can find of if statements deal with strings. How can I set the variable to display an image? Example: if(date("D") == "Mon") { echo ("Monday"); I want it to display Monday.png rather than "Monday". Do I still use echo or print? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#25365) next »