LostKID Posted September 15, 2009 Share Posted September 15, 2009 hi i was wondering how do i keep data formatted.. i really only want to do the basics like line spaces. here is there page at the moment: http://www.brokenbox.co.uk/MY/page.php?id=1 the bit on the right id like to be able to add spaces when updating the information. the field is set as a TEXT in mysql. Link to comment https://forums.phpfreaks.com/topic/174389-keeping-mysql-data-formatted/ Share on other sites More sharing options...
tekrscom Posted September 17, 2009 Share Posted September 17, 2009 style="white-space: pre-wrap;" or just go here, http://www.w3schools.com/CSS/pr_text_white-space.asp Basically the white space should still be in tact in your text field, do your formatting once you retrieve it... Link to comment https://forums.phpfreaks.com/topic/174389-keeping-mysql-data-formatted/#findComment-919898 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.