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. Quote 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')"); Quote 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! Quote Link to comment https://forums.phpfreaks.com/topic/159483-solved-longtext/#findComment-841293 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.