So you want to just have all your html code listed on the page right? There are some plugins but none of them really seem to work too well. You can search for “code view” plugins or something like that. I use something similar on my site http://www.bluebreeze.net/blog.
However the simplest, yet most rudimentary thing to do is simply to paste it in after replacing all of your “<” tags with “<” and your “>” tags with “>”.
That will mark those tags as not being html and it should just show up as text on your page.
I am not sure if this is what you’re looking for, but this tutorial may help:
http://www.bluebreeze.net/blog/?p=11
I wrote a tutorial that may be able to help you.
http://www.bluebreeze.net/blog/?p=18
or
http://www.bluebreeze.net/blog/?p=11
I think you would just have to modify the code a little. Instead of using ‘localhost’ you’d have to use the IP Address of your database. And if it’s in a different domain you’d have to enable remote mysql access on your site that holds the database you are trying get your posts from.