There are unrelated questions but thought I'd combine them into one post.
First the MySql question...
I have a site with about 1000 links on it, all unique. What I want to do is a search and replace in mysql to change or remove them. So basically each field would look like this...
Since each link is unique I'd want to say "Take everything that starts with "<a href", all the stuff in between and ends with "< / a >" and replace it.
Here is the query I've been trying to modify and use but haven't been able
to get it to work.
I don't think that's correct but my googling has proven fruitless to this point.
***********************************************
The second question is my iframe question.
I use them for some things but occasionally they redirect to the site I'm framing. Is there a way to force the page to load in the iframe?
Again I've tried some of the "solutions" I found but none seem to work, unless I'm doing it wrong.
This is the complete code of my page...
I've spent way too much time on what are probably simple things that I just can't seem to figure out.
Any help would be appreciated.
First the MySql question...
I have a site with about 1000 links on it, all unique. What I want to do is a search and replace in mysql to change or remove them. So basically each field would look like this...
Code:
content, content, content, content
, content, content, content, content etc..
<a href="mylink.com">Link</a>
Here is the query I've been trying to modify and use but haven't been able
to get it to work.
Code:
update content set content_detail = replace(content_detail,'replace everything between tags','with this');
***********************************************
The second question is my iframe question.
I use them for some things but occasionally they redirect to the site I'm framing. Is there a way to force the page to load in the iframe?
Again I've tried some of the "solutions" I found but none seem to work, unless I'm doing it wrong.
This is the complete code of my page...
Code:
<?php include(TEMPLATEPATH.'/header2.php'); ?>
<div id="content">
<iframe frameborder="0" src="<?php echo get_post_meta($post->ID, "offer", true); ?>" width="1024px" height="768px" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no"></iframe>
</div>
Any help would be appreciated.