Hi
I have a form with textarea. when user submit content through this text area. indent and paragraph is preserving in mysql. Even when I copy data from mysql via phpmyadmin, it also preserving indent and paragraph. But problem is that, when I get data from mysql via php script. All content is showing in block in one block.

is there any solution?
thanks everybody

Enters and spaces in MySQL will not be shown if outputted as HTML. You either need to wrap it in a <pre> block, or encode it into HTML entities.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.