n8w Posted April 29, 2006 Share Posted April 29, 2006 How can I pull data from a mysql database and preserve the white space?I was using the PRE tag but in IE even with the width specified it doesn't wrap the text so your html table ends up being way to wideIs there a php function that converts the white space save in html tags? or how should I go about accomplishing this?Thanksn8w Quote Link to comment https://forums.phpfreaks.com/topic/8694-solved-preserving-white-space-from-a-mysql-column/ Share on other sites More sharing options...
Barand Posted April 29, 2006 Share Posted April 29, 2006 You might want to look at[a href=\"http://www.php.net/nl2br\" target=\"_blank\"]http://www.php.net/nl2br[/a][a href=\"http://www.php.net/wordwrap\" target=\"_blank\"]http://www.php.net/wordwrap[/a] Quote Link to comment https://forums.phpfreaks.com/topic/8694-solved-preserving-white-space-from-a-mysql-column/#findComment-31907 Share on other sites More sharing options...
n8w Posted April 29, 2006 Author Share Posted April 29, 2006 [!--quoteo(post=369827:date=Apr 29 2006, 04:16 AM:name=Barand)--][div class=\'quotetop\']QUOTE(Barand @ Apr 29 2006, 04:16 AM) [snapback]369827[/snapback][/div][div class=\'quotemain\'][!--quotec--]You might want to look at[a href=\"http://www.php.net/nl2br\" target=\"_blank\"]http://www.php.net/nl2br[/a][a href=\"http://www.php.net/wordwrap\" target=\"_blank\"]http://www.php.net/wordwrap[/a][/quote]thanks .. works awesome Quote Link to comment https://forums.phpfreaks.com/topic/8694-solved-preserving-white-space-from-a-mysql-column/#findComment-31961 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.