<?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: SQL Injection: How To Prevent Security Flaws In PHP / MySQL</title>
	<atom:link href="http://www.learnphponline.com/security/sql-injection-prevention-mysql-php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.learnphponline.com/security/sql-injection-prevention-mysql-php</link>
	<description>Learn PHP Online</description>
	<lastBuildDate>Sun, 07 Mar 2010 15:56:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sushilkumar Shinde</title>
		<link>http://www.learnphponline.com/security/sql-injection-prevention-mysql-php/comment-page-1#comment-1739</link>
		<dc:creator>Sushilkumar Shinde</dc:creator>
		<pubDate>Fri, 05 Mar 2010 06:10:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=37#comment-1739</guid>
		<description>Thanks for such a nice and understandable information about sql injection. Now i can protect my website from this attack.</description>
		<content:encoded><![CDATA[<p>Thanks for such a nice and understandable information about sql injection. Now i can protect my website from this attack.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://www.learnphponline.com/security/sql-injection-prevention-mysql-php/comment-page-1#comment-1632</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Wed, 17 Feb 2010 21:22:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=37#comment-1632</guid>
		<description>Eika,  If your page looks like this:

$desc = $_POST[&#039;desc&#039;];   

You would just do this to prevent the SQL injection:

$desc = $_POST[&#039;desc&#039;];  
$desc = mysql_real_escape_string($desc);

and you&#039;re set.</description>
		<content:encoded><![CDATA[<p>Eika,  If your page looks like this:</p>
<p>$desc = $_POST['desc'];   </p>
<p>You would just do this to prevent the SQL injection:</p>
<p>$desc = $_POST['desc'];<br />
$desc = mysql_real_escape_string($desc);</p>
<p>and you&#8217;re set.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eika</title>
		<link>http://www.learnphponline.com/security/sql-injection-prevention-mysql-php/comment-page-1#comment-1534</link>
		<dc:creator>eika</dc:creator>
		<pubDate>Tue, 02 Feb 2010 10:16:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=37#comment-1534</guid>
		<description>hi all..

I am a student and i am a new leaner. I would like to know how am i going to develop a coding to prevent sql injection attacks from scratch?</description>
		<content:encoded><![CDATA[<p>hi all..</p>
<p>I am a student and i am a new leaner. I would like to know how am i going to develop a coding to prevent sql injection attacks from scratch?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: valentinstag karten</title>
		<link>http://www.learnphponline.com/security/sql-injection-prevention-mysql-php/comment-page-1#comment-1526</link>
		<dc:creator>valentinstag karten</dc:creator>
		<pubDate>Mon, 01 Feb 2010 00:00:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=37#comment-1526</guid>
		<description>Very nice information.</description>
		<content:encoded><![CDATA[<p>Very nice information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prakash Bhandari</title>
		<link>http://www.learnphponline.com/security/sql-injection-prevention-mysql-php/comment-page-1#comment-1439</link>
		<dc:creator>Prakash Bhandari</dc:creator>
		<pubDate>Fri, 15 Jan 2010 05:29:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=37#comment-1439</guid>
		<description>Thanks for your article. It really works</description>
		<content:encoded><![CDATA[<p>Thanks for your article. It really works</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: read and learn</title>
		<link>http://www.learnphponline.com/security/sql-injection-prevention-mysql-php/comment-page-1#comment-870</link>
		<dc:creator>read and learn</dc:creator>
		<pubDate>Sat, 10 Oct 2009 23:55:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=37#comment-870</guid>
		<description>the query has a few to many spaces (but didn&#039;t type them in the message..)

also if you want to learn php sql and how to learn the security, don&#039;t buy the basic books, buy the advanced in depth books. I made that error also and have a book written by matt rutledge for creating my own php games and there&#039;s no real information on the subject of &quot;mysql_real_escape_string()&quot; usages. I&#039;m sorry matt, the book is rather helpful on other fields of game devellopment...</description>
		<content:encoded><![CDATA[<p>the query has a few to many spaces (but didn&#8217;t type them in the message..)</p>
<p>also if you want to learn php sql and how to learn the security, don&#8217;t buy the basic books, buy the advanced in depth books. I made that error also and have a book written by matt rutledge for creating my own php games and there&#8217;s no real information on the subject of &#8220;mysql_real_escape_string()&#8221; usages. I&#8217;m sorry matt, the book is rather helpful on other fields of game devellopment&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: read and learn</title>
		<link>http://www.learnphponline.com/security/sql-injection-prevention-mysql-php/comment-page-1#comment-869</link>
		<dc:creator>read and learn</dc:creator>
		<pubDate>Sat, 10 Oct 2009 23:51:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=37#comment-869</guid>
		<description>I use this line of code to do stuff with the current user&#039;s ID number.

$sql1 = &quot;SELECT stuff FROM data WHERE id =&#039;&quot;.mysql_real_escape_string($idnumber).&quot;&#039;&quot;;

take notice of all the &#039;&quot;. usages.
also how to update stuff to 1 for that id number.

mysql_query(&quot;UPDATE data SET stuff = &#039;&quot;.mysql_real_escape_string(1).&quot;&#039; WHERE id = &#039;&quot;.mysql_real_escape_string($idnumber).&quot;&#039;&quot;);

take a good look in the use of &#039;&quot;. signs.</description>
		<content:encoded><![CDATA[<p>I use this line of code to do stuff with the current user&#8217;s ID number.</p>
<p>$sql1 = &#8220;SELECT stuff FROM data WHERE id =&#8217;&#8221;.mysql_real_escape_string($idnumber).&#8221;&#8216;&#8221;;</p>
<p>take notice of all the &#8216;&#8221;. usages.<br />
also how to update stuff to 1 for that id number.</p>
<p>mysql_query(&#8220;UPDATE data SET stuff = &#8216;&#8221;.mysql_real_escape_string(1).&#8221;&#8216; WHERE id = &#8216;&#8221;.mysql_real_escape_string($idnumber).&#8221;&#8216;&#8221;);</p>
<p>take a good look in the use of &#8216;&#8221;. signs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arvind</title>
		<link>http://www.learnphponline.com/security/sql-injection-prevention-mysql-php/comment-page-1#comment-751</link>
		<dc:creator>arvind</dc:creator>
		<pubDate>Wed, 02 Sep 2009 06:47:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=37#comment-751</guid>
		<description>&#039; or &#039;1&#039;=&#039;1
how to prevent sql injection when i am putting     &#039; or &#039;1&#039;=&#039;1
 into url then data is coming so plz help me.</description>
		<content:encoded><![CDATA[<p>&#8216; or &#8216;1&#8242;=&#8217;1<br />
how to prevent sql injection when i am putting     &#8216; or &#8216;1&#8242;=&#8217;1<br />
 into url then data is coming so plz help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ryan</title>
		<link>http://www.learnphponline.com/security/sql-injection-prevention-mysql-php/comment-page-1#comment-702</link>
		<dc:creator>ryan</dc:creator>
		<pubDate>Wed, 05 Aug 2009 18:01:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=37#comment-702</guid>
		<description>I found your article very good but you left me wondering about a few things. Why are you pulling all of the information from your SQL databases with select *? I also wanted to know if it is neccesary to put the mysql_real_escape_string everywhere the post command is even if a different function is running such as trim. Also what is the difference between mysql_realescape_string and mysql_escape_string?</description>
		<content:encoded><![CDATA[<p>I found your article very good but you left me wondering about a few things. Why are you pulling all of the information from your SQL databases with select *? I also wanted to know if it is neccesary to put the mysql_real_escape_string everywhere the post command is even if a different function is running such as trim. Also what is the difference between mysql_realescape_string and mysql_escape_string?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kidmenot</title>
		<link>http://www.learnphponline.com/security/sql-injection-prevention-mysql-php/comment-page-1#comment-701</link>
		<dc:creator>Kidmenot</dc:creator>
		<pubDate>Wed, 05 Aug 2009 17:28:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=37#comment-701</guid>
		<description>Thanks , but could you tell me exactly where I would put the string to prevent an attack
Thanks</description>
		<content:encoded><![CDATA[<p>Thanks , but could you tell me exactly where I would put the string to prevent an attack<br />
Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
