Reply to if else trouble

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация