mrherman Posted September 29, 2010 Share Posted September 29, 2010 I imported a CSV which had some blank cells. I tried to deal with the cells by using (for example) WHERE myfield = '' or myfield = ' ' I couldn't get anything to work, so I copied the contents of one of the cells and pasted it in a text editor. Come to find out, the cells contained CHAR(13) -- carriage returns. How did carriage returns get into the cells of the CSV? I generated the CSV from an EXCEL spreadsheet. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/214669-mysql-table-cells-look-blank-but-contain-char13/ Share on other sites More sharing options...
PFMaBiSmAd Posted September 29, 2010 Share Posted September 29, 2010 Unless you had one long line in the file, each line had some kind of a new-line (cr/lf) on the end of it to cause the next line to be a separate line. Those new-line character(s) got inserted into your database unless you did something to remove them. Quote Link to comment https://forums.phpfreaks.com/topic/214669-mysql-table-cells-look-blank-but-contain-char13/#findComment-1116945 Share on other sites More sharing options...
mrherman Posted September 29, 2010 Author Share Posted September 29, 2010 Thanks for your reply. Quote Link to comment https://forums.phpfreaks.com/topic/214669-mysql-table-cells-look-blank-but-contain-char13/#findComment-1116960 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.