Jump to content

[SOLVED] Save with newline in database


shamsuljewel

Recommended Posts

Hi all,

I have a textarea and I input 3 lines on it and save the data in a database field name signature (text).

 

When I print it shows in one line.

I use

$signature = $_POST['signature'];
	$signature = stripslashes($signature);
	$signature = str_replace("rn","<br>", $signature);

 

But still it doesnot work.

Any Suggestion????

Link to comment
https://forums.phpfreaks.com/topic/71493-solved-save-with-newline-in-database/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.