S
S
Sergey Vinogradov2018-08-14 15:50:08
MySQL
Sergey Vinogradov, 2018-08-14 15:50:08

How to automatically add to html tags in MySQL?

In the database, you need to add to all html IMG tags, in addition to the standard ALT, also TITLE. How to automatically create for each IMG tag that has ALT also a TITLE tag with similar text content? Tools console, phpmyadmin, notepad++

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andy, 2018-08-14
@laskevych

Write a script that will take your data from the database, process it with a regular expression and immediately update it in the database.

A
AVKor, 2018-08-14
@AVKor

For example, make a dump, go through it with sed, delete the original base, upload the edited dump back.

S
Sergey Vinogradov, 2018-08-14
@Opt

Thank you, I can make a dump and open it with an editor. I would like specifics what to write without php - because. The procedure is one-time, I think the script will be less. I can download the dump and open it in an editor. Either a query to the database, or a regular expression in N ++, that's the problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question