kelphyr Posted December 18, 2006 Share Posted December 18, 2006 Well I know how to fetch the data from mysql but my problem is when I echo it.. it's in a block of text, no enters for the next lines... anyway to have it print with the lines... like it is in the db. .. I know there's a code for that but i dont remember it.. :O Quote Link to comment https://forums.phpfreaks.com/topic/31132-fetch-text-from-mysql-db/ Share on other sites More sharing options...
mendoz Posted December 18, 2006 Share Posted December 18, 2006 I'm not like the monsters of PHP here but I'd like to help.Please show an example of waht you get Quote Link to comment https://forums.phpfreaks.com/topic/31132-fetch-text-from-mysql-db/#findComment-143752 Share on other sites More sharing options...
kelphyr Posted December 18, 2006 Author Share Posted December 18, 2006 gamingtwilight.com check my news it's in a block im fetching my data from the phpbb mysql DB Quote Link to comment https://forums.phpfreaks.com/topic/31132-fetch-text-from-mysql-db/#findComment-143765 Share on other sites More sharing options...
KevinM1 Posted December 18, 2006 Share Posted December 18, 2006 You're probably looking for the nl2br function. It transforms newlines (\n) into HTML's non-breaking whitespace (<br />). Quote Link to comment https://forums.phpfreaks.com/topic/31132-fetch-text-from-mysql-db/#findComment-143770 Share on other sites More sharing options...
kelphyr Posted December 18, 2006 Author Share Posted December 18, 2006 thanks man it works ;D Quote Link to comment https://forums.phpfreaks.com/topic/31132-fetch-text-from-mysql-db/#findComment-143791 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.