-1
I am able to list in HTML all the images saved in my database, but I would like to click on any, open a Blank page with the image, but I do not know what to put in href, because the image data comes from the database.
Code:
<span class="ml-2">
<a href="O QUE COLOCO AQUI?" target="_blank">
<img class="img-fluid" src="<?= 'data:' . $anexo['tipo'] . ';base64,' . base64_encode($anexo['arquivo']) ?>" alt="Photo" style="width: 80px; height: 80px !important;">
</a>
</span>
Database:
if you don’t have a url to post, use
#
– Ricardo Pontual