
<article style="margin-bottom:15px;">

    <div class="base-box2">

        <div class="widget-head mb-3">

            <h3 class="widget-title">

                <span><? echo $asd ?>Nuestros oyentes</span>

            </h3>

        </div>  
        
<? 

include 'concha.php';

$sql = "SELECT * FROM fotosoyentes WHERE ver = 'si' ORDER BY rand() LIMIT 1";
$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{
$ID = $row["ID"];
$foto = $row["img"];
$texto = $row["texto"];
?>
 
           <a data-lightbox="example-3" href="upload_pic/resize_<?php echo $foto ?>.jpg" class="" title="<?php if ($texto == NULL) { echo ".";} else { echo $texto;} ?>">
               <img src="<?echo $dom ?>/upload_pic/resize_<?php echo $foto ?>.jpg" class="img-fluid lazy" />
            </a>
        
<?  
    
} $consulta->free_result(); ?>
         
             <a class="btn btn-outline-primary" href="<?php echo $dom ?>/subir_foto.php" target="_blank">Sub&iacute; tu Foto</a> 
             
             <a class="btn btn-outline-primary" href="<?php echo $dom ?>/fotosoyentes.php">Ver mas</a>
             

        </div>

 </article>
    
