Pretty much explains itself. If I just just get the image to load with this:
<img src="/dm cricket/admin/img/tables/<?php htmlout($name);?>_2.jpg">
it works, but if I decide to change the code to this:
<?php if(file_exists('/dm cricket/admin/img/tables/'.$name.'_2.jpg')){
?>
<img src="/dm cricket/admin/img/tables/<?php htmlout($name);?>_2.jpg"><?php }
else {
echo 'No competition held';}?>
it doesn't work, it only echoes 'No competition held'. Can anyone explain why?