formatting output on screen

how can I make prints, so that they are printed as in a table and not just in a list, of the data I retrieve in my SQL database with PHP


Do you mean tables ?

Try Tableviewer or Dynamic HTML Table or ChartMakerPlus(table chart)

I wanted it to look like the picture with a black line between records

That is possible using CompCreator