# Text formatting in PHP

**URL:** https://forum.kirupa.com/t/text-formatting-in-php/190844
**Category:** programming
**Created:** [June 15, 2006, 2:01am UTC](https://forum.kirupa.com/t/text-formatting-in-php/190844 "2006-06-15T02:01:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Kristopher](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kristopher/32/501_2.png) [@Kristopher](https://forum.kirupa.com/u/Kristopher)
#### Post date: [June 15, 2006, 2:01am UTC](https://forum.kirupa.com/t/text-formatting-in-php/190844/1 "2006-06-15T02:01:03Z")

</div>

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](http://www.dp3marketing.com/test.php)

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