I'm trying to show an image for every record saved in the database. I have managed to show a square for each record, but I can not see the image.
I have a file that is events.php that is this:
<?php
include_once('conexion.php');
$consultaimg = consultaimg();
?>
Luego esta la pagina web y en el body tengo esto de php:
<div class="row">
<?php
while ($variable = $consultaimg->fetch_assoc())
{
?>
<div class="col-md-4">
<div class="thumbnail">
<a href="#">
<img src="<?php print $variable; ?>" style="width:100%">
<div class="caption">
<p>Lorem ipsum...</p>
</div>
</a>
</div>
</div>
<?php
}
?>
If I "inspect" my web page, in the route where the image should be, I get this:
Notice: Array to string conversion in C: \ xampp \ htdocs \ PaginaWebPBLlocal \ events.php on line 92
In the database I save the images with internet routes like this: https://...