Is it possible to display an alternative image please?

images php coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 122
Joined: Tue Mar 01, 2016 3:07 pm

Tue Nov 06, 2018 3:37 pm


I'd just like to enquire if an image is not available for some reason, is it possible to show an alternative image instead?

At present I've written

Code: Select all

<img src="/user/images/<?=row['myimage'?>", width="75",  height="75", alt="scr='/system/graphics/noimage.png'">
At present, it displays the text scr='/system/graphics/noimage.png' but I'd like it to display the noimage.png graphic.

Thank You.

Post Reply