How to encode returns in database?

admin

Administrator
Staff member
when I store text into my MySQL database (not using Phorum), the returns are ignored when I retrieve the info from the database, even though I use addslashes() and stripslashes(). Example:

Input:
Testing
1
2
3

Output (not Phorum):
Testing123

Output (using Phorum):
Testing
1
2
3

What do Phorum (and this website) do to retain the returns?

Thanks!!!

--John.
 
Back
Top