Есть такого типа запрос
while($row = mysqli_fetch_array($result)){ //Creates a loop to loop through results
echo "
<li class='player__item' audiourl=" . $row['file'] . " artist=" . $row['author'] . " title=" . $row['name'] . ">
<span class='player__play__button'></span>
<div class='player__track__name__wrapper'>
<div class='player__track__name'>" . $row['name'] . "</div>
<div class='player__track__more'>
<div class='player__track__author'>by " . $row['author'] . "</div>
<div class='player__track__lenght'>" . $row['lenght'] . "</div>
<div class='player__track__bitrate'>bmp " . $row['bitrate'] . "</div>
</div>
</div>
<div class='player__track__genre__wrapper'>
<div class='player__track__genre'>
<div class='player__track__genre__name'>" . $row['genre'] . "</div>
</div>
</div>
<img src='http://beats/wp-content/themes/beats/assets/icons/tracks/like.svg' alt='likeIcon' class='player__track__like'>
<div class='player__track__buy'>
<div class='player__track__buy__price'>$" . $row['price'] . "</div>
</div>
</li>
";
}