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:


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= "";?>

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

And the link itself:

<img  src="<?= $image_src; ?>" />

Leave a Comment