<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: PHP/MySQL- Escape All POST Or GET Variables For MySQL INSERT</title>
	<atom:link href="http://www.brightcherry.co.uk/scribbles/phpmysql-make-all-post-or-get-variables-safe-for-mysql-insert/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brightcherry.co.uk/scribbles/phpmysql-make-all-post-or-get-variables-safe-for-mysql-insert/</link>
	<description></description>
	<lastBuildDate>Sat, 21 Jan 2012 16:15:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Richard Cummings</title>
		<link>http://www.brightcherry.co.uk/scribbles/phpmysql-make-all-post-or-get-variables-safe-for-mysql-insert/#comment-1779</link>
		<dc:creator>Richard Cummings</dc:creator>
		<pubDate>Thu, 31 Mar 2011 17:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.brightcherry.co.uk/scribbles/?p=199#comment-1779</guid>
		<description>I was looking to escape all post data in one shot.  This just did the trick.  Thx, Richard</description>
		<content:encoded><![CDATA[<p>I was looking to escape all post data in one shot.  This just did the trick.  Thx, Richard</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: guru</title>
		<link>http://www.brightcherry.co.uk/scribbles/phpmysql-make-all-post-or-get-variables-safe-for-mysql-insert/#comment-1083</link>
		<dc:creator>guru</dc:creator>
		<pubDate>Wed, 15 Sep 2010 07:33:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.brightcherry.co.uk/scribbles/?p=199#comment-1083</guid>
		<description>nice method (with references)
foreach($_POST as $key=&gt;&amp;$value)  {
$value = mysql_real_escape_string($value);
}

or your one:
foreach(array_keys($_POST) as $key)
{
  $clean[$key] = mysql_real_escape_string($_POST[$key]);
}
Is ugly
here is cleaner
 :)
foreach($_POST as $key=&gt;$value) {
$clean[$key]=mysql_real_escape_string($value);
}</description>
		<content:encoded><![CDATA[<p>nice method (with references)<br />
foreach($_POST as $key=&gt;&amp;$value)  {<br />
$value = mysql_real_escape_string($value);<br />
}</p>
<p>or your one:<br />
foreach(array_keys($_POST) as $key)<br />
{<br />
  $clean[$key] = mysql_real_escape_string($_POST[$key]);<br />
}<br />
Is ugly<br />
here is cleaner<br />
 <img src='http://www.brightcherry.co.uk/scribbles/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
foreach($_POST as $key=&gt;$value) {<br />
$clean[$key]=mysql_real_escape_string($value);<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

