I store some data into mysql database when someone enter a data hi put enter for a newline this newline is store it into database
when i want to read this information from database the output be like that
test
xxx....
How can i read the
like a newline what i mean is the output be like that
test
xxxx
I store the input like that
$desc=strip_tags(mysqli_real_escape_string($conn,$_POST['desc']));
I use nl2br()
and htmlentities()
and it didn't give me the result i want
How can i solve this problem??!!