raman Posted December 2, 2008 Share Posted December 2, 2008 I have a table in mysql database which I had initially written as an excel file and then imported into mysql command by saving it as a csv file and then using load data local ...command. Now I want to add a new field to the database but the problem is that the information extends into multple lines.I exemplify below: AAAAAFFFGGVVVVVVVVV 23 34 45 67 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCNNNNNVVVV 56 76 23 90 SSSSSSSSSS 45 34 65 43 Against the total 1775 entries in the table around 1000 entries would have this type of information. Is there any way to store this type of information ?Also the number of lines is not fixed for every entry ,it varies with every entry. Link to comment https://forums.phpfreaks.com/topic/135167-multi-line-infomation-in-mysql-field/ Share on other sites More sharing options...
rhodesa Posted December 2, 2008 Share Posted December 2, 2008 you should use mysql_real_escape_string() on all your values before putting into the SQL Query. it will escape the data properly Link to comment https://forums.phpfreaks.com/topic/135167-multi-line-infomation-in-mysql-field/#findComment-703984 Share on other sites More sharing options...
raman Posted December 3, 2008 Author Share Posted December 3, 2008 could you elaborate how I can incorporatethe field into the table? I am sure it won't begin from Excel sheet ,bu would be loaded from a text file only . But will you please explain i detail? Link to comment https://forums.phpfreaks.com/topic/135167-multi-line-infomation-in-mysql-field/#findComment-705079 Share on other sites More sharing options...
Maq Posted December 3, 2008 Share Posted December 3, 2008 Is there any way to store this type of information ?Also the number of lines is not fixed for every entry ,it varies with every entry. Yes there is. Can we see the code of insertion so we can give you specific help? Link to comment https://forums.phpfreaks.com/topic/135167-multi-line-infomation-in-mysql-field/#findComment-705082 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.