Dude, wheres my whitespace?
Posted 06 June 2006 - 04:01 AM
I'm saving a block of text into MySQL.
When I read it back using PHP it strips all the whitespace characters and line breaks.
I would like to have them back!
[img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /]
Any idea how to do this? I can't find it in search on php.net phpbuilder or this site..
is it because of the mysql_real_escape..() function..
$_POST seems to hold all the whtie space, but after its loaded into MySQL i lose it.
Posted 06 June 2006 - 04:23 AM
Posted 06 June 2006 - 04:29 AM
It's not PHP's fault, it's how browsers display HTML.
Oh. that sucks.
thanks for your insight.
2 cookies for u!!!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users