dflow Posted January 19, 2012 Share Posted January 19, 2012 how can one add text at the end of a BLOB/text field like insert '.<br><br>' Link to comment https://forums.phpfreaks.com/topic/255359-add-text-at-the-end-of-a-blobtext-field/ Share on other sites More sharing options...
AyKay47 Posted January 19, 2012 Share Posted January 19, 2012 concatenate it upon output, post the relevant code. Link to comment https://forums.phpfreaks.com/topic/255359-add-text-at-the-end-of-a-blobtext-field/#findComment-1309246 Share on other sites More sharing options...
dflow Posted January 19, 2012 Author Share Posted January 19, 2012 Quote concatenate it upon output, post the relevant code. I did that before with a php loop, i was wondering if there is a way to recognize the end of the concatenated textfield to change and add to the end part inside mysql example: TEXT1(<BR> at the end)+TEXT2(<BR> at the end) --> NEWTEXT(<BR> at the end) update [table_name] set [NEWTEXT] = replace([NEWTEXT],'[<BR>]','[<BR> New Title]'); Link to comment https://forums.phpfreaks.com/topic/255359-add-text-at-the-end-of-a-blobtext-field/#findComment-1309250 Share on other sites More sharing options...
AyKay47 Posted January 19, 2012 Share Posted January 19, 2012 sure, you can use mysql's concat() function to append whatever you want to the field, however, doing this would simply be a waste of memory since it is not needed. Link to comment https://forums.phpfreaks.com/topic/255359-add-text-at-the-end-of-a-blobtext-field/#findComment-1309253 Share on other sites More sharing options...
fenway Posted January 22, 2012 Share Posted January 22, 2012 Yeah, that's not what a database engine is for. Link to comment https://forums.phpfreaks.com/topic/255359-add-text-at-the-end-of-a-blobtext-field/#findComment-1310129 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.