![]() |
Search and Replace a string of text that includes quotes?
I am using the following query to find and replace text in a table due to a site change/redesign. I want to know how to use it to find text that includes quotes as well.
UPDATE articles SET article_header = REPLACE ( article_header, '74', '60'); I want to be able to do quotes too like: UPDATE articles SET article_header = REPLACE ( article_header, 'width="74"', 'width="60"'); But that is obviously not foing to work (i tried just to make sure :) and I need to know how to do it the correct way. |
addslashes() and stripslashes() do the trick.
http://es2.php.net/addslashes http://es2.php.net/manual/en/function.stripslashes.php |
And they go where? :) Can you format the query using the one I provided above?
|
All times are GMT. The time now is 06:07 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|