<?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>TastyPlacement Search and Web Strategy &#187; Programming &amp; PHP</title>
	<atom:link href="http://www.TastyPlacement.com/category/programming-php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.TastyPlacement.com</link>
	<description>SEO &#124; Web Design &#124; Web Strategy &#124; Austin Texas</description>
	<lastBuildDate>Tue, 24 Jan 2012 22:03:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>WordPress Stripping iFrame Elements? Here&#8217;s the Fix.</title>
		<link>http://www.TastyPlacement.com/wordpress-stripping-iframe-elements-heres-the-fix</link>
		<comments>http://www.TastyPlacement.com/wordpress-stripping-iframe-elements-heres-the-fix#comments</comments>
		<pubDate>Fri, 18 Feb 2011 21:19:44 +0000</pubDate>
		<dc:creator>Michael David</dc:creator>
				<category><![CDATA[Programming & PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.TastyPlacement.com/?p=1687</guid>
		<description><![CDATA[Is WordPress Stripping iFrame Elements From Your Content?<br />
Elements like Google Map embeds get stripped out. Here&#8217;s the Fix.<br />
[tweetmeme] If you have ever tried to enter a Google Map embed into a WordPress page or post, you&#8217;ve noticed that switching between &#8220;Visual&#8221; and &#8220;HTML&#8221; view in the page or post edit window strips the iFrame out&#8211;leaving you with broken code that displays nothing. Luckily, there is a fix.<br />
You&#8217;ll need to find the functions.php file in your active theme ...]]></description>
			<content:encoded><![CDATA[<h1>Is WordPress Stripping iFrame Elements From Your Content?</h1>
<h2>Elements like Google Map embeds get stripped out. Here&#8217;s the Fix.</h2>
<p>[tweetmeme] If you have ever tried to enter a Google Map embed into a WordPress page or post, you&#8217;ve noticed that switching between &#8220;Visual&#8221; and &#8220;HTML&#8221; view in the page or post edit window strips the iFrame out&#8211;leaving you with broken code that displays nothing. Luckily, there is a fix.</p>
<p>You&#8217;ll need to find the <em>functions.php</em> file in your active theme folder. It&#8217;s a standard WordPress file, so it&#8217;ll be there. Next, we are going to add two short functions that change the way the WordPress editor handles iFrame code. You&#8217;ll want to insert the following lines of code before the closing &#8220;?&gt;&#8221;  of your <em>functions.php</em> file.</p>
<pre style="color: black; font-size: 11px; background: white">
// this function initializes the iframe elements 

function add_iframe($initArray) {
$initArray['extended_valid_elements'] = "iframe[id|class|title|style|align|frameborder|height|longdesc|marginheight|marginwidth|name|scrolling|src|width]";
return $initArray;
}

// this function alters the way the WordPress editor filters your code
add_filter('tiny_mce_before_init', 'add_iframe');</pre>
<p>That&#8217;s it. You can test your mod by entering some iFrame code in the editor window and switching between  the visual and HTML editor.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.TastyPlacement.com/wordpress-stripping-iframe-elements-heres-the-fix/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>MySQL String to Replace Postal Codes With State Names</title>
		<link>http://www.TastyPlacement.com/mysql-string-to-replace-postal-codes-with-state-names</link>
		<comments>http://www.TastyPlacement.com/mysql-string-to-replace-postal-codes-with-state-names#comments</comments>
		<pubDate>Fri, 07 Nov 2008 20:41:39 +0000</pubDate>
		<dc:creator>Michael David</dc:creator>
				<category><![CDATA[Programming & PHP]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.TastyPlacement.com/?p=221</guid>
		<description><![CDATA[I recently had to modify a mySql database to replace postal codes (i.e., &#34;FL&#34;) with complete state names (i.e., &#34;Florida&#34;). I searched all over and did not find a ready-made string to accomplish this.<br />
I am sure somewhere that someone will find this useful.<br />
Simply replace &#34;dbo_vwPRVDR&#34; with your table name, and &#34;State&#34; with the column name, and you&#8217;ll be in business.<br />
update dbo_vwPRVDR set State = replace(State,'AL','Alabama');<br />
update dbo_vwPRVDR set State = replace(State,'AK','Alaska');<br />
update dbo_vwPRVDR set State = replace(State,'AZ','Arizona');<br ...]]></description>
			<content:encoded><![CDATA[<p>I recently had to modify a mySql database to replace postal codes (i.e., &quot;FL&quot;) with complete state names (i.e., &quot;Florida&quot;). I searched all over and did not find a ready-made string to accomplish this.</p>
<p>I am sure somewhere that someone will find this useful.</p>
<p>Simply replace &quot;dbo_vwPRVDR&quot; with your table name, and &quot;State&quot; with the column name, and you&#8217;ll be in business.</p>
<pre>update dbo_vwPRVDR set State = replace(State,'AL','Alabama');
update dbo_vwPRVDR set State = replace(State,'AK','Alaska');
update dbo_vwPRVDR set State = replace(State,'AZ','Arizona');
update dbo_vwPRVDR set State = replace(State,'AR','Arkansas');
update dbo_vwPRVDR set State = replace(State,'CA','California');
update dbo_vwPRVDR set State = replace(State,'CO','Colorado');
update dbo_vwPRVDR set State = replace(State,'CT','Connecticut');
update dbo_vwPRVDR set State = replace(State,'DC','Washington DC');
update dbo_vwPRVDR set State = replace(State,'DE','Delaware');
update dbo_vwPRVDR set State = replace(State,'FL','Florida');
update dbo_vwPRVDR set State = replace(State,'GA','Georgia');
update dbo_vwPRVDR set State = replace(State,'HI','Hawaii');
update dbo_vwPRVDR set State = replace(State,'IA','Iowa');
update dbo_vwPRVDR set State = replace(State,'ID','Idaho');
update dbo_vwPRVDR set State = replace(State,'IL','Illinois');
update dbo_vwPRVDR set State = replace(State,'IN','Indiana');
update dbo_vwPRVDR set State = replace(State,'KS','Kansas');
update dbo_vwPRVDR set State = replace(State,'KY','Kentucky');
update dbo_vwPRVDR set State = replace(State,'LA','Louisiana');
update dbo_vwPRVDR set State = replace(State,'MA','Massachusetts');
update dbo_vwPRVDR set State = replace(State,'MD','Maryland');
update dbo_vwPRVDR set State = replace(State,'ME','Maine');
update dbo_vwPRVDR set State = replace(State,'MI','Michigan');
update dbo_vwPRVDR set State = replace(State,'MN','Minnesota');
update dbo_vwPRVDR set State = replace(State,'MO','Missouri');
update dbo_vwPRVDR set State = replace(State,'MS','Mississippi');
update dbo_vwPRVDR set State = replace(State,'NC','North Carolina');
update dbo_vwPRVDR set State = replace(State,'ND','North Dakota');
update dbo_vwPRVDR set State = replace(State,'NE','Nebraska');
update dbo_vwPRVDR set State = replace(State,'NH','New Hampshire');
update dbo_vwPRVDR set State = replace(State,'NJ','New Jersey');
update dbo_vwPRVDR set State = replace(State,'NM','New Mexico');
update dbo_vwPRVDR set State = replace(State,'NV','Nevada');
update dbo_vwPRVDR set State = replace(State,'NY','New York');
update dbo_vwPRVDR set State = replace(State,'OH','Ohio');
update dbo_vwPRVDR set State = replace(State,'OK','Oklahoma');
update dbo_vwPRVDR set State = replace(State,'OR','Oregon');
update dbo_vwPRVDR set State = replace(State,'PA','Pennsylvania');
update dbo_vwPRVDR set State = replace(State,'PR','Puerto Rico');
update dbo_vwPRVDR set State = replace(State,'RI','Rhode Island');
update dbo_vwPRVDR set State = replace(State,'SC','South Carolina');
update dbo_vwPRVDR set State = replace(State,'SD','South Dakota');
update dbo_vwPRVDR set State = replace(State,'TN','Tennessee');
update dbo_vwPRVDR set State = replace(State,'TX','Texas');
update dbo_vwPRVDR set State = replace(State,'UT','Utah');
update dbo_vwPRVDR set State = replace(State,'VA','Virginia');
update dbo_vwPRVDR set State = replace(State,'VT','Vermont');
update dbo_vwPRVDR set State = replace(State,'WA','Washington');
update dbo_vwPRVDR set State = replace(State,'WI','Wisconsin');
update dbo_vwPRVDR set State = replace(State,'WV','West Virginia');
update dbo_vwPRVDR set State = replace(State,'WY','Wyoming');</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.TastyPlacement.com/mysql-string-to-replace-postal-codes-with-state-names/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 4/27 queries in 0.012 seconds using disk: basic
Object Caching 1143/1247 objects using disk: basic

Served from: www.tastyplacement.com @ 2012-02-03 21:29:18 -->
