Forum Moderators: open
<script type='text/javascript' src='//thisisthewebsite?tid=79479_131506_0&tagid=2'></script><script type="text/javascript" src="//thisisthewebsite.php?zoneid=683723"></script> UPDATE wp_posts SET post_content = REPLACE ( post_content, '<script type='text/javascript' src='//thisisthewebsite?tid=79479_131506_0&tagid=2'></script><script type="text/javascript" src="//thisisthewebsite.php?zoneid=683723"></script> ', '' ); ERROR: Unknown Punctuation String @ 106
STR: //
SQL: UPDATE hei8ty6_posts SET post_content = REPLACE ( post_content, ''<script type='text/javascript' src='//thisisthewebsite?tid=79479_131506_0&tagid=2'></script><script type="text/javascript" src="//thisisthewebsite.php?zoneid=683723"></script> ' ', '' )
SQL query:
UPDATE hei8ty6_posts SET post_content = REPLACE ( post_content, ''<script type='text/javascript' src='//thisisthewebsite?tid=79479_131506_0&tagid=2'></script><script type="text/javascript" src="//thisisthewebsite.php?zoneid=683723"></script> ' ', '' )
MySQL said: Documentation
#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 'type=''text/javascript'' src=''//thisisthewebsite?tid=79479_131506_0' at line 1 UPDATE wp_posts SET post_content = REPLACE ( post_content, '<script type=''text/javascript'' src=''//thisisthewebsite?tid=79479_131506_0&tagid=2''></script><script type="text/javascript" src="//thisisthewebsite.php?zoneid=683723"></script>', '' )It is a little bit confusing that the first <script> declaration uses single quotes, and the second double quotes.
UPDATE wp_posts SET post_content = REPLACE ( post_content, '<script type=\'text/javascript\' src=\'//thisisthewebsite?tid=79479_131506_0&tagid=2\'></script><script type="text/javascript" src="//thisisthewebsite.php?zoneid=683723"></script> ', '' );