Posted by JD on 07/09/05 01:54
I have the below code that displays a small thumbnail if a user is saluted,
if they aren't saluted it checks to see if they might have a profile
picture, this all works with the exception that is no profile picture exist
it still trys to display a broken image, Im sure it's a simple mistake any
help please?
<?php
if ($commentUser[0]['saluted']=="Yes") {
?>
<img src="../salute/<?php echo $commentUser[0]['login'];
?>/thumbs/random.php" border=0 width="50">
<?php } else { ?>
<?php if
( !is_dir('./profilepic/' . $commentUser[0]['login']) ) {
?>
<img src="../profilepic/<?php echo $commentUser[0]['login'];
?>/thumbs/random.php" border=0 width="50">
<?php } else { ?>
this part doesn't work
<?php
}
} ?>
[Back to original message]
|