I would like to know if there is any way to pass a data String
obtained from a database to reference an image, here the example:
<div class="row">
<div class="col-md-7">
<a href="#">
<img class="img-fluid rounded mb-3 mb-md-0" src='img/menudia/paletamango.png' alt="">
</a>
</div>
<div class="col-md-5">
<h3><?php printf("%s", $NAME); ?></h3>
<p><?php printf("%s", $DESCR); ?></p>
<P> $<?php printf("%d", $COSTO); ?></P>
<P> <?php printf("%s", $IMG); ?></P>
<a class="btn btn-primary" href="post.html">Ordenar</a>
</div>
</div>
I need the text String
of variable "$IMG
"to be as a reference for the image instead of "paletamango.png"
That is, it would be something like src='img/menudia/(Aquí iría la información de $IMG)'