mapleleaf Posted June 21, 2012 Share Posted June 21, 2012 I have a string that is causing an error using replace: update articles set text = replace(text, ?<p class="p1">QUESTION:</p>?, ?<p class="p1 question">QUESTION:</p>?); What is my syntax issue? Thanks Link to comment https://forums.phpfreaks.com/topic/264560-mysql-replace/ Share on other sites More sharing options...
mapleleaf Posted June 21, 2012 Author Share Posted June 21, 2012 Not sure where those question marks came from Anyway this does work: update articles set text = replace(text, '<p class="p1">QUESTION:</p>', '<p class="p1 question">QUESTION:</p>'); So marking as solved Link to comment https://forums.phpfreaks.com/topic/264560-mysql-replace/#findComment-1355819 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.