Cless Posted May 24, 2009 Share Posted May 24, 2009 I have a longtext field, and all rows are similar to: 1,6,2,8 Which is an array.. Whenever I try to do something like: mysql_query("UPDATE table SET array= array + ',5'"); ...it converts the whole row to an integer. Any function or something that can be used to bypass this? Thanks. Link to comment https://forums.phpfreaks.com/topic/159483-solved-longtext/ Share on other sites More sharing options...
wildteen88 Posted May 24, 2009 Share Posted May 24, 2009 Use the MySQL concat() function mysql_query("UPDATE table SET array=CONCAT(array, ',5')"); Link to comment https://forums.phpfreaks.com/topic/159483-solved-longtext/#findComment-841268 Share on other sites More sharing options...
Cless Posted May 24, 2009 Author Share Posted May 24, 2009 Thanks! Link to comment https://forums.phpfreaks.com/topic/159483-solved-longtext/#findComment-841293 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.