Answer the question
In order to leave comments, you need to log in
Replace in base on a mask?
I am doing the following query in mysql:
UPDATE table SET text = replace(text,'предмет','<a href="/predmet">предмет</a>');
Answer the question
In order to leave comments, you need to log in
Use either Like or RegExp operator in sql query.
If you will process on the php side, use preg_replace
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question