Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9136527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:57:52+00:00 2026-06-17T08:57:52+00:00

I am replacing some URLs in a MySQL database. Im worried that I need

  • 0

I am replacing some URLs in a MySQL database. Im worried that I need to escape some characters in the first url in the update command.

UPDATE wp_posts SET post_content = replace( post_content, 'http://www.website.com/soft/www/test/ck.php?oaparams…o__cb=658ac30cf5__oadest=http%3A%2F%2Fwww.site.com/page.html', 'http://www.newsite.com' ) ;

Should this work as is, or do I need to escape the _‘s and %‘s?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T08:57:53+00:00Added an answer on June 17, 2026 at 8:57 am

    Looks like your code works well. If it’s not working, check the data in your table and see how it’s stored.

    Here is the SQL Fiddle.

    Good luck.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was looking for some help replacing particular characters if based on the first
I need some comparing and replacing code in PHP Our mission is to empower
So I was tasked at replacing some dummy code that our project requires for
I'm replacing some text using a regex that I've found here . $items =
I am currently replacing some functionality in a twiki page that has been pulling
I'm using a sed command for replacing some words in text files. This command
I have a question regarding replacing some characters with regex or any other best
I am doing some URL redirections in a project that I am currently working
I have function that sanitizes URLs and filenames and it works fine with characters
I need to modify a radgrid's FilterMenu by replacing some text, such as Order

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.