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>' Quote 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. Quote 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 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]'); Quote 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. Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.