Forum Moderators: coopster
My php code is like:
$query = 'update wp_posts set post_content=REPLACE(post_content,"Content-Transfer-Encoding: 7bit","Sponsored by")';
$query = 'update wp_posts set post_content=REPLACE(post_content,"Content-Type: text/html; charset=us-ascii","New")';
It is ok ; after the second row? This code doesnt work, maybe is due to ;?
Regards,
Dan
I got this errror:
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/mediapr/public_html/news/update.php on line 13
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/mediapr/public_html/news/update.php on line 14
$query = 'update wp_posts set post_content=REPLACE(post_content,"PR","RE")'\;
$query = 'update wp_posts set post_content=REPLACE(post_content,"CANNT","MOVE")'\;
Why the script can not make step by step?
IF I will leave:
$query = 'update wp_posts set post_content=REPLACE(post_content,"PR","RE")';
Will works, but if I will add:
$query = 'update wp_posts set post_content=REPLACE(post_content,"PR","RE")';
$query = 'update wp_posts set post_content=REPLACE(post_content,"CANNT","MOVE")';
I mean two queries, then will not work.
WHY?
Regards,
Dan