Text formatting in PHP

I’m trying to draw some posts from my WordPress database so I can display them on my front page. Wordpress is installed a couple directories down, so I can’t incorporate it in WP’s templates.

Here’s my test page… I got the pulling from the database to work how I want it:

www.dp3marketing.com/test.php

Notice though how everything isn’t formatted… I don’t know how to fix that… :frowning: