display table data in fixed number of rows : i have a table with 2 columns and multiple data are there . Now i'm able to fetch data from table and print all data at a time but i want to display data in fixed number of rows for example: in Five Rows and then next data and so on.

DATABASE:PostgreSQL 9.5.12 running on localhost:5432
Frontend: PHP

Thanks.