Use this CSS on your display element:
.lineBreaks {
white-space: pre-line;
}
For example in your page:
<div style="white-space:pre-line">
<?php echo $mysqlData ?>
</div>
More Related Contents:
- Trying to Show 87 mysql rows in 3 html tables using PHP and mysql [closed]
- While loop inserts three times
- Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in? [duplicate]
- Selecting events between dates in mysql
- A list of php error [closed]
- Laravel one to many relation with a one to one relation
- Thank you for helping [closed]
- How can create Database using url or other method [duplicate]
- How to create email notification with login users on PHP an MySQL [duplicate]
- PHP display image BLOB from MySQL [duplicate]
- LIMIT keyword on MySQL with prepared statement [duplicate]
- Pagination using MySQL LIMIT, OFFSET
- How to call a MySQL stored procedure from within PHP code?
- Is mysql_real_escape_string() broken?
- How to setup ElasticSearch index structure with multiple entity bindings
- Export MySQL database using PHP [closed]
- WAMP/MySQL errors not in correct language
- Get Updated Value in MySQL instead of affected rows
- Alternative for mysql_num_rows using PDO
- How Can I Set the Default Value of a Timestamp Column to the Current Timestamp with Laravel Migrations?
- Can I blindly replace all mysql_ functions with mysqli_?
- Warning: mysqli_query() expects parameter 1 to be mysqli, resource given [duplicate]
- Storing datetime as UTC in PHP/MySQL
- Using utf8mb4 with php and mysql
- how do I get month from date in mysql
- Strange problem with the length of the field gotten from database [duplicate]
- MySQL, how to insert null dates
- Can I detect and handle MySQL Warnings with PHP?
- How to write a stored procedure in phpMyAdmin?
- mysql count into PHP variable