Question

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

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 ?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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