note 29737 added to control-structures.else
| From: | rajan at rack1 dot php dot net | Date: | Sun, 23 Feb 2003 18:01:36 +0000 |
| Subject: | note 29737 added to control-structures.else | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44395@lists.php.net to get a copy of this message | ||
here is a revised copy of above code if it doesn't work for you...
<?php
if (file_exists("./users/" . "$user_small" . ".jpg"))
{ ?>
<img src='./users/<? echo $user_small ?>.jpg' border='2'
height='88' width='88'></a>
<?
} else {
?>
<img alt="could not be found: <? echo $user_small ?>.jpg"
src="./users/notfound.jpg" border="0" height="88"
width="88">
<?
}
?>
--
http://www.php.net/manual/en/control-structures.else.php
http://master.php.net/manage/user-notes.php?action=edit+29737
http://master.php.net/manage/user-notes.php?action=delete+29737
http://master.php.net/manage/user-notes.php?action=reject+29737