Forum Moderators: coopster
I have many articles that have this <br /> in my HTML source:
takes no obligation to revise the forward-looking statements contained ther<br />
ein to reflect events or circumstances after the date hereof as a result of<br />
It is ok to add:
$query = 'update wp_posts set post_content=REPLACE(post_content,"<br /> ","")';
But it doesnt delete, why?
Regards,
Dan
$query = 'update wp_posts set post_content=strip_tags($row_Edit["Text"], "<br />","")'
MySQL said:
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '$query = 'update wp_posts set post_content=strip_tags($row_Edit
If I will delete just <br /> the text will look like:
takes no obligation to revise the forward-looking statements contained ther ein to reflect events or circumstances after the date hereof as a result of
will put space between "ther ein"
I still I dont understand:
My tabel is: wp_posts
My columns with posts is: post_content
So will look like:
$query = 'update wp_posts set post_content=strip_tags($row_wp_posts["post_content"], "<br />","")';
I still get
MySQL said:
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '$query = 'update wp_posts set post_content=strip_tags($row_wp_p
you have
$query = 'update wp_posts set post_content=strip_tags($row_post_content["Text"], "<br />","")';
should be
$query = 'update wp_posts set post_content=strip_tags(' . $row_post_content["Text"] . ', "<br />","")';