littlepeg Posted May 3, 2007 Share Posted May 3, 2007 Hi everybody. I am a very very new learner for php & MySQL and have one easy question would like to ask for advice. I want to store some articles(Microsoft word format) in my database by using PHPadmin. But what what should I do if I want to output these articles as what they are (have different paragraphs and headings) rather than all cluster together in one paragraph. Any help would be grately and appreciated. Link to comment https://forums.phpfreaks.com/topic/49795-a-question-about-php-and-mysqlhow-to-output-articles/ Share on other sites More sharing options...
corbin Posted May 3, 2007 Share Posted May 3, 2007 Unfortunately, PHP does not have the tools to handle Word documents natively. The reason it's being clumped into one giant paragraph is probably 2 things: The php script is out putting linebreaks instead of <br /> meaning that it won't break lines. And, all header formatting, font sizes, colors etcetera will be lost unless they are converted to some form that php can understand.... Link to comment https://forums.phpfreaks.com/topic/49795-a-question-about-php-and-mysqlhow-to-output-articles/#findComment-244702 Share on other sites More sharing options...
littlepeg Posted May 4, 2007 Author Share Posted May 4, 2007 Thank you for letting me know that. But will it be possible that I can use \n\r to seperate each paragraph when I store the articles in the database? Link to comment https://forums.phpfreaks.com/topic/49795-a-question-about-php-and-mysqlhow-to-output-articles/#findComment-245231 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.