Skip to content
Advertisement

How to display data in PHP from a database where every 4 data that appears then the other data is placed below

Currently I’m making a PHP application which displays data from a database by script as below:

JavaScript

The result of which is as follows:

A B C D E F G H I J K L

original result

I want the result is like the following:

A B C D

E F G H

I J K L expected result

where there are only there are 4 data in each row.

If there is more than 4 data, the data placed in the below.

how do I do this?

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement