haku87 Posted February 2, 2008 Share Posted February 2, 2008 My database has a column called instruction.. Inside there it has stuff like this.. testing testing2 neline but when i echo out in php it become testing testing2 neline how to preserve the enter key? Quote Link to comment https://forums.phpfreaks.com/topic/89012-data/ Share on other sites More sharing options...
trq Posted February 2, 2008 Share Posted February 2, 2008 nl2br(). Quote Link to comment https://forums.phpfreaks.com/topic/89012-data/#findComment-455833 Share on other sites More sharing options...
laffin Posted February 2, 2008 Share Posted February 2, 2008 echo "<PRE>" . htmlspecialchars($row) . "</PRE>"; Quote Link to comment https://forums.phpfreaks.com/topic/89012-data/#findComment-455834 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.