I have a database, i need to extract from them four record at a time.

To extract all the records i use this query:

```
SELECT image FROM song ORDER BY date DESC

```

but i need to process 4 record at a time, because in HTML i close a row every 4 images.

```
echo"<div class='row'>";
while ($dati=mysqli_fetch_assoc($result)) 
{
    echo"<a href='song.php'>";
    echo"<div class='col-md-3'>";
    echo"<img class='img-responsive' src='".$dati['immagine']."'><br>";
    echo"</div>";
    echo"</a>";
}
echo "</div><br>";  

```

I need to re-execute the command above every 4 image record as long as there are records not processed in the database.