<?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>MG Data &#187; MySQL</title>
	<atom:link href="http://www.mattgregg.com/category/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mattgregg.com</link>
	<description>Computers, Internet, SEO, Windows, Cycling, Food &#038; Nutrition</description>
	<lastBuildDate>Sat, 24 Jul 2010 20:47:44 +0000</lastBuildDate>
		<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP Wildcard Match in an Array</title>
		<link>http://www.mattgregg.com/php-wildcard-match-in-an-array.html</link>
		<comments>http://www.mattgregg.com/php-wildcard-match-in-an-array.html#comments</comments>
		<pubDate>Thu, 30 Nov 2006 09:33:08 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP Code Snippets]]></category>

		<guid isPermaLink="false">http://www.mattgregg.com/php-wildcard-match-in-an-array.html</guid>
		<description><![CDATA[I was working with a list of wildcard banned domain names (e.g. *.spamsite.com) stored in a database. I needed to compare a submitted domain (e.g. anything.spamsite.com) to the wildcard entries stored in the database.
Essentially then I need the function in_array to perform with a wildcard match with the wildcards being the array haystack not the needle.
In the [...]]]></description>
		<wfw:commentRss>http://www.mattgregg.com/php-wildcard-match-in-an-array.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Injection Attacks</title>
		<link>http://www.mattgregg.com/mysql-injection-attacks.html</link>
		<comments>http://www.mattgregg.com/mysql-injection-attacks.html#comments</comments>
		<pubDate>Mon, 27 Nov 2006 21:49:42 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.mattgregg.com/mysql-injection-attacks.html</guid>
		<description><![CDATA[MySQL injection attacks occur when the code of a MySQL query can be altered by the user due to improper escaping of variables.
See http://us3.php.net/mysql_real_escape_string for a  great example of an SQL injection attack.
MySQL injection attacks can be prevented by using mysql_real_escape_string($mystring) for each variable inputted into a MySQL query.
























]]></description>
		<wfw:commentRss>http://www.mattgregg.com/mysql-injection-attacks.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find and Replace with MySQL</title>
		<link>http://www.mattgregg.com/find-and-replace-with-mysql.html</link>
		<comments>http://www.mattgregg.com/find-and-replace-with-mysql.html#comments</comments>
		<pubDate>Mon, 27 Nov 2006 21:20:30 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.mattgregg.com/find-and-replace-with-mysql.html</guid>
		<description><![CDATA[If you&#8217;re just trying to find a replace a string in a MySQL table, you don&#8217;t need to write a script to do it. You can simply use the following syntax with MySQL (e.g. phpMyAdmin, MySQL shell access)
UPDATE TABLENAME SET COLUMNNAME = replace(COLUMNNAME,&#8221;FINDWHAT&#8221;,&#8221;REPLACEWITHWHAT&#8221;);Note that this method is case-sensitive. This is a great timesaver over doing it with [...]]]></description>
		<wfw:commentRss>http://www.mattgregg.com/find-and-replace-with-mysql.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
