ankur0101 Posted August 11, 2012 Share Posted August 11, 2012 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 ? Quote Link to comment https://forums.phpfreaks.com/topic/266942-removing-javascripts-from-mysql-table-am-i-doing-right/ Share on other sites More sharing options...
cpd Posted August 11, 2012 Share Posted August 11, 2012 I don't really understand what your asking to be honest. You want specific pages to have this javascript on? Or you want to remove it from pages? Its not particularly clear. Quote Link to comment https://forums.phpfreaks.com/topic/266942-removing-javascripts-from-mysql-table-am-i-doing-right/#findComment-1368595 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.