i have a Mysql database with text table, that contains:
id=int(30) and text=mediumtext;
I typed as below, for example, and saved in the table, as id=1
.
Whent i retrieve the field:
This is a text.
This is a new line, with a big space before text. here contains more info.
$id=GetRow("SELECT text from text_table WHERE id=1");
I got this:
" This is a text.
This is a new line,
that contains more info."
Without new lines, paragraphs or tabs.
How i retrieve as typed?
Thx!
` is a line break not "\n" or "\r" which is what is used in plain text – Jun 18 '15 at 22:12
and  , but is stored as i typed. Is not possible to retrieve that? – Andre Alves Jun 18 '15 at 22:17
` as @MKhalidJunaid suggest nl2br() – Jun 18 '15 at 22:18
, or when i input. – Andre Alves Jun 18 '15 at 22:18
issue, but not the space (paragraph tab), the issue. THX @MKhalidJunaid. – Andre Alves Jun 18 '15 at 22:42