Jump to content

Removing Javascripts from MySQL table, Am I doing right ?


ankur0101

Recommended Posts

Hi,

I have a wordpress blog. I posted Google Adsense ads in Wordpress POST content area which exist in column 'post_content' under table wp_posts.

 

Now I want to write  PHP script to remove that in just execution of specific PHP file.

 

Here is something in my mind.

 

<?php

$ad = "<script type=\"text/javascript\">// <![CDATA[
  google_ad_client = \"pub-xxxxxxxxx\"; /* PostInnerAds-Banner */ google_ad_slot = \"xx\"; google_ad_width = 468; google_ad_height = 60;
// ]]></script>
<script type=\"text/javascript\" src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">// <![CDATA[


// ]]></script>";



?>

 

Now after connecting to database, I think I can use %LINK% query.

But what can I do after that ?

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.