Código PHP:
<?PHP
require_once('config.php');
$link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
$db = mysql_select_db(DB_DATABASE);
$result= mysql_query("select * from tbl_1 ORDER BY id_promocion DESC") or die('Error: '.mysql_error());
?>
<div class="container-fluid margin_30_95 pl-lg-5 pr-lg-5">
<section class="add_bottom_45">
<div class="main_title_3">
<h2>Los más buscados</h2>
</div>
<div class="row">
<?php
while ($row = mysql_fetch_array($result)){
?>
<div class="col-xl-3 col-lg-6 col-md-6">
<?PHP
$images = explode (", ", $row['imagenes']);
$primary = $images[0];
?>
<figure>
<img alt="" class="img-fluid" src="admin/uploads/<?PHP echo $primary; ?>" width="800" height="533">
<div class="info">
<div class="cat_star"><i class="icon_star"></i><i class="icon_star"></i><i class="icon_star"></i><i class="icon_star"></i></div>
<h5>
<?php
echo"" .$row['titulo']. "";
?>
</h5>
<p>
<?php echo substr($row['copete'],0,100); ?> ...
</p>
<div class="cat_star"><?php
echo"<a href='detalle_promocion.php?id_promocion=" .$row['id_promocion']. "'> Acceder </a>";
?></div>
</div>
</figure>
</div>
<?php
}
?>