I have textarea comming from mysql.
In the backend the user tyes a letter type format in a textarea
They ise Enter to make new rows etc
__________________________________________________

Dear john

Welocome to our website hope you find it usefull

Thank you
The Team
___________________________________________________

When I pull the data from my sql to the backend, it does not leave the spaces as per input, it does this

Dear John Welcome to our website hope you find it usefull thank you the team

Ho can i set the text to show as html text and not text

<?php

//EXTRACT DATA
$extract = mysql_query("select * from tbl_about");

while ($row = mysql_fetch_assoc($extract))
{
$id = $row['id'];
$about = $row['fld_about'];


echo " <thead> $about </thead>";
echo "<br>";

}
?>
Member Avatar for diafol

have a look at nl2br()

thanks ... you rock!!

ardav for president !!!

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.