<?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"
	>
<channel>
	<title>Comments on: Prevent SQL Injections with PHP</title>
	<atom:link href="http://woolie.co.uk/2007/01/prevent-sql-injections-with-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://woolie.co.uk/2007/01/prevent-sql-injections-with-php/</link>
	<description>Cycling, Motoring and Web Development.</description>
	<pubDate>Fri, 29 Aug 2008 05:22:20 +0000</pubDate>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>By: Woolie</title>
		<link>http://woolie.co.uk/2007/01/prevent-sql-injections-with-php/#comment-1406</link>
		<dc:creator>Woolie</dc:creator>
		<pubDate>Sun, 20 Apr 2008 22:41:42 +0000</pubDate>
		<guid isPermaLink="false">http://woolie.co.uk/archives/115#comment-1406</guid>
		<description>Hi Roel, as the notice at the top of this post states, the code used in this post may be out of date. Please make sure you verify with other sources before using it. 

To answer your question, no there is no real difference. The only thing I would note is that in the second one, to make the result exactly the same as the first, you may want to rewrite like so:

&lt;pre lang="php"&gt;
$result = mysql_query("SELECT* FROM animals WHERE name = $safe");
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi Roel, as the notice at the top of this post states, the code used in this post may be out of date. Please make sure you verify with other sources before using it. </p>
<p>To answer your question, no there is no real difference. The only thing I would note is that in the second one, to make the result exactly the same as the first, you may want to rewrite like so:</p>

<div class="wp_syntax"><div class="code"><pre class="php"><span style="color: #ff0000">$result</span> <span style="color: #66cc66;">=</span> <span style="color: #000066;">mysql_query</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;SELECT* FROM animals WHERE name = $safe&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Roel</title>
		<link>http://woolie.co.uk/2007/01/prevent-sql-injections-with-php/#comment-1399</link>
		<dc:creator>Roel</dc:creator>
		<pubDate>Sun, 20 Apr 2008 07:40:35 +0000</pubDate>
		<guid isPermaLink="false">http://woolie.co.uk/archives/115#comment-1399</guid>
		<description>Is there a difference between:

 $query = "SELECT * FROM animals WHERE name = $safe";
 $result = mysql_query( $query );


$query = mysql_query("* FROM animals WHERE name = $safe");</description>
		<content:encoded><![CDATA[<p>Is there a difference between:</p>
<p> $query = &#8220;SELECT * FROM animals WHERE name = $safe&#8221;;<br />
 $result = mysql_query( $query );</p>
<p>$query = mysql_query(&#8221;* FROM animals WHERE name = $safe&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://woolie.co.uk/2007/01/prevent-sql-injections-with-php/#comment-354</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Wed, 25 Jul 2007 10:43:02 +0000</pubDate>
		<guid isPermaLink="false">http://woolie.co.uk/archives/115#comment-354</guid>
		<description>When you want to use a numeric value, you can just use this :

$id = (int)$_GET['id'];</description>
		<content:encoded><![CDATA[<p>When you want to use a numeric value, you can just use this :</p>
<p>$id = (int)$_GET['id'];</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johni</title>
		<link>http://woolie.co.uk/2007/01/prevent-sql-injections-with-php/#comment-353</link>
		<dc:creator>johni</dc:creator>
		<pubDate>Thu, 31 May 2007 15:12:09 +0000</pubDate>
		<guid isPermaLink="false">http://woolie.co.uk/archives/115#comment-353</guid>
		<description>Great article, i must say simply the best!</description>
		<content:encoded><![CDATA[<p>Great article, i must say simply the best!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: harry</title>
		<link>http://woolie.co.uk/2007/01/prevent-sql-injections-with-php/#comment-352</link>
		<dc:creator>harry</dc:creator>
		<pubDate>Tue, 15 May 2007 06:14:30 +0000</pubDate>
		<guid isPermaLink="false">http://woolie.co.uk/archives/115#comment-352</guid>
		<description>nice one dude</description>
		<content:encoded><![CDATA[<p>nice one dude</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran</title>
		<link>http://woolie.co.uk/2007/01/prevent-sql-injections-with-php/#comment-351</link>
		<dc:creator>Imran</dc:creator>
		<pubDate>Thu, 10 May 2007 06:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://woolie.co.uk/archives/115#comment-351</guid>
		<description>Pretty helpfull for newbies who are making such kinda mistakes... thanx for sharing</description>
		<content:encoded><![CDATA[<p>Pretty helpfull for newbies who are making such kinda mistakes&#8230; thanx for sharing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Is PHP Insecure? Hell No! &#187; Woolie&#8217;s World</title>
		<link>http://woolie.co.uk/2007/01/prevent-sql-injections-with-php/#comment-350</link>
		<dc:creator>Is PHP Insecure? Hell No! &#187; Woolie&#8217;s World</dc:creator>
		<pubDate>Sun, 06 May 2007 09:55:48 +0000</pubDate>
		<guid isPermaLink="false">http://woolie.co.uk/archives/115#comment-350</guid>
		<description>[...] Preventing SQL Injection Attacks [...]</description>
		<content:encoded><![CDATA[<p>[...] Preventing SQL Injection Attacks [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scragar</title>
		<link>http://woolie.co.uk/2007/01/prevent-sql-injections-with-php/#comment-349</link>
		<dc:creator>scragar</dc:creator>
		<pubDate>Mon, 30 Apr 2007 08:53:29 +0000</pubDate>
		<guid isPermaLink="false">http://woolie.co.uk/archives/115#comment-349</guid>
		<description>can I just say that if your checking that it is 1 to 10,000 inclusive then you should use = as comparisons, otherwise your range drops to 2 to 9,999 inclusive.</description>
		<content:encoded><![CDATA[<p>can I just say that if your checking that it is 1 to 10,000 inclusive then you should use = as comparisons, otherwise your range drops to 2 to 9,999 inclusive.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: buchin</title>
		<link>http://woolie.co.uk/2007/01/prevent-sql-injections-with-php/#comment-348</link>
		<dc:creator>buchin</dc:creator>
		<pubDate>Sun, 29 Apr 2007 17:21:17 +0000</pubDate>
		<guid isPermaLink="false">http://woolie.co.uk/archives/115#comment-348</guid>
		<description>Thanks! nice article</description>
		<content:encoded><![CDATA[<p>Thanks! nice article</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://woolie.co.uk/2007/01/prevent-sql-injections-with-php/#comment-347</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Sun, 29 Apr 2007 01:41:08 +0000</pubDate>
		<guid isPermaLink="false">http://woolie.co.uk/archives/115#comment-347</guid>
		<description>Thank-you! Much easier than I though.</description>
		<content:encoded><![CDATA[<p>Thank-you! Much easier than I though.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
