projectz

Tech, Gadgets, Photography, Social Media and Poor Spelling

Question: How can i display formatted text in php from mysql output?

this question comes from a webpage i was creating, put simply i was importing linux log files into MySQL and displaying them on a PHP page. However when doing so they did not display formatted. Just as one long text string.

In order to get them to display correctly, i wrapped the php output in <pre></pre> tags..

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Information

This entry was posted on June 10, 2011 by in regular and tagged , , , , .
%d bloggers like this: