Forum Moderators: coopster
Now and then the base URL of these links change but not the page names.
For example:
[ZZZZ.com...]
might change to:
[YYYYYYYYYYYY.com...]
The URLs to all other pages at this particular site would similarly change. Note that the change involves more characters.
QUESTION: what should the wording of a MySQL query be to change all occurences of the substring "ZZZZ.com/zzz" in the URLS field in the LINKS table to "YYYYYYYYYYYY.com/yyyyyyy"
(I'm very new to this, obviously. Thanks for your help!)
The MySQL manual comes in quite handy. The String Functions [dev.mysql.com] page is where you can see what each argument represents in the example ergophobe gave here.
BTW, the manual is, obviously, a great resource, but unfortunately most examples on the string functions page (including replace) just illustrate with SELECT and it's sometimes not obvious how to make the jump from the example to the task you're working on (at least for me).
I find the MySQL manual so much less friendly than the PHP manual, whether it's finding something you've seen before, finding something new, or just trying to figure something out, it often strikes me as unfriendly.
Tom