android6011 Posted June 19, 2007 Share Posted June 19, 2007 I have a blob in a table, and when i insert it, and the pull it and print it goes on the page exactly how I want because I use n2lbr before I insert it. I have a page to edit the entries and what it does is puts the blob in a textarea, the only problem is when it does that it adds <br /> at the end of every line, then when I update the table, and pull up the page that gets it I have 2 spaces between every line.. anyway to fix this? should I just not use a n2lbr the second time around? Quote Link to comment https://forums.phpfreaks.com/topic/56243-update-blob/ Share on other sites More sharing options...
akitchin Posted June 19, 2007 Share Posted June 19, 2007 use nl2br() ONLY when displaying the data, rather than storing it with the br tag. this will avoid any editing issues, and reduce the size requirements of the database. Quote Link to comment https://forums.phpfreaks.com/topic/56243-update-blob/#findComment-277791 Share on other sites More sharing options...
android6011 Posted June 19, 2007 Author Share Posted June 19, 2007 ok thanks Quote Link to comment https://forums.phpfreaks.com/topic/56243-update-blob/#findComment-277817 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.