
November 24th, 2012, 11:49 AM
|
|
Registered User
|
|
Join Date: Nov 2012
Posts: 8
Time spent in forums: 2 h 40 m 4 sec
Reputation Power: 0
|
|
Thanks for your reply Now I tried to use this codes as below
for Inserting
PHP Code:
$data=mysql_real_escape_string($data);
and for view as the same like
PHP Code:
echo "<textarea cols='50' rows='10'>" . htmlentities($str, ENT_QUOTES, 'UTF-8') . "</textarea>";
but unfortunately the result is the same let suppose If I enter this type of insertion in different lines:
Hello how are you
this "is not" and how much
you get' and own
The result is showed in single line:
Hello how are you\r\nthis \\is not\\ and how much\r\nyou get\' and own
Hope you understand my point
|