Here is one example; the web is full of this kind of pages. You could just as well read the official
PHP site and see the commands for querying a database and how loops work, and then create a loop that wrote a html table row and put the read records to the table cells, one round per one row.