Report this

What is the reason for this report?

How to display articles well managed which is stored in mysql?

Posted on December 3, 2019

I am using html, css, php and mysql. When I fetch article from database, it does not look good. I want to display according to I need like… text wrap, line break, font size etc…

How I can ?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

One thing that I could suggest is using a What You See Is What You Get (WYSIWYG) editor to store your article’s body in MySQL. That way it would include all of the HTML tags like paragraphs, line breaks and etc. so when you print them afterward, the article should display as normal.

Hope that this helps! Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.