4
4
4upik2018-04-17 19:35:20
PHP
4upik, 2018-04-17 19:35:20

How to replace part of text in mysql?

There is table content

html code
<table>
htm code2
</table>

you need to replace only с <table> до </table>inclusive
html code at the top you need to leave
now I replace it like this
$sql = "UPDATE wp_posts SET post_content='$zamena' WHERE ID='2379'";

replaces completely

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question