| View previous topic :: View next topic |
| Author |
Message |
codebyte
Joined: 21 Jan 2010 Posts: 1
|
Posted: Thu Jan 28, 2010 12:23 am Post subject: removing whitespace when inserting data into table using md2 |
|
|
Hi.
i created a textarea for users to enter a message, now if they enter couple of paragraphs they all come to same line as php/html removes all whitespace. so to fix that i am displaying their input as it is with pre tags.
i noticed that first line always intended about 200px.i checked the database field and their are some spaces introduced. how i can make sure that when i save/retrieve data it comes without any starting and trailing spaces. i tried php's trim but that did not help.
is there any function equivalent to mysql trim ?
please help
thanks |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|