Hello,
When you retrieve data from a database, you will want to ensure you format it before printing it out on the screen. Looking at the linked article, check out the second code section in step 2, particularly the piece below. It is a sample of how to format your data. As it is 'echoing the data to the screen in HTML, it simply uses a <br /> tag to create a line break.
Email: $email
Website: $website
Comment: $comment
Timestamp: $timestamp