Not sure how basic you want things.. but here goes
Get Data from the database
Layout Page including Table Headers
Use While loop to run through multiple records formating data according to page layouts
If you want to output the data for just one record, and you know your select statement is going to return the record you want, then forget the while loop and just output the formatted data....
Let me know if this is to basic...
PHPdev