Staying awake in class helps but when that fails I use Google.
Getting info from a database to the users screen is after all something that almost every website does and there will be thousands of tutorials out there.
Anyhow you asked for help so...
Show us the code you have for getting the information out of your database..
we can't help you display it till we know what format the data is in.