<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Eric Ditmer &#187; MySQL</title>
	<atom:link href="http://www.ericditmer.com/category/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ericditmer.com</link>
	<description>ericditmer.com</description>
	<lastBuildDate>Tue, 08 Nov 2011 14:35:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Find and Replace with MySQL</title>
		<link>http://www.ericditmer.com/find-and-replace-with-mysql</link>
		<comments>http://www.ericditmer.com/find-and-replace-with-mysql#comments</comments>
		<pubDate>Thu, 08 Sep 2011 04:24:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.ericditmer.com/?p=132</guid>
		<description><![CDATA[A long long time ago, when dinosaurs roamed the earth, I had a client that had written all of her pages&#8217; text in Microsoft Word, and pasted them directly into her content management system. This resulted in over 50 pages of content that would display nasty characters in some browsers. Back then, I went through [...]]]></description>
			<content:encoded><![CDATA[<p>A long long time ago, when dinosaurs roamed the earth, I had a client that had written all of her pages&#8217; text in Microsoft Word, and pasted them directly into her content management system. This resulted in over 50 pages of content that would display nasty characters in some browsers. <span id="more-132"></span>Back then, I went through each and every page and replaced those nasty characters with their cross-browser alternatives. Nowadays, I&#8217;d use a schmexy MySQL query like the one below:</p>
<pre name="code" class="php">
&lt;?php
$find_and_replace_query = mysql_query("UPDATE `table` SET `field` =
REPLACE(`field`, 'string_to_find', 'string_to_replace')");
?>
</pre>
<p>That&#8217;s it, you ask? Yep! Sure beats the grueling process of updating 50 pages one at a time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericditmer.com/find-and-replace-with-mysql/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

