default image not showing [closed]

I believe that your default image is an absolute path and when it is used you end up with this as a URL:

/theme/Design/img/leagues-back/https://ind.proz.com/zf/images/default_user_512px.png.jpg

You can check the HTML source code in your web browser to see if this is the case. This might work resolve that issue:

<?php $defimg= "https://ind.proz.com/zf/images/default_user_512px.png";?>

<?php $image_src = isset($League["name"]) ? "/theme/Design/img/leagues-back/" . $League["name"] . ".jpg" : $defimg; ?>

And the link itself:

<img  src="https://stackoverflow.com/questions/47973002/<?= $image_src; ?>" />

Leave a Comment