mattal999 Posted October 18, 2007 Share Posted October 18, 2007 I have a record in a database which contains 'The Enter Key' (moving down a line) in it a couple of times. when i fetch it and echo it on a page, it is like it has changed them for spaces... can anyone give me code to re-HTML it? Thanks Quote Link to comment Share on other sites More sharing options...
hostfreak Posted October 18, 2007 Share Posted October 18, 2007 You mean a line break? If so, when you display the information use <a href="http://php.net/nl2br">nl2br()</a> Quote Link to comment Share on other sites More sharing options...
mattal999 Posted October 18, 2007 Author Share Posted October 18, 2007 yup worked cheers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.