Problem on retrieving values from the database



I am retrieving a value from the database and I insert the value as a value of a field
The problem is that when the value has spaces then in the filed is viewed only the part of the value before the first space.
If the value is not includes any spaces then the value appears in the field correct.
That could happen if you were loading content with line breaks into a 1 row text field.
Can you show us the code.. or how are you loading/retrieving the data from database ?