<?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: More Elegant Object-Oriented PHP Output of MySQL Data</title>
	<atom:link href="http://articles.akgfx.com/2008/04/more-elegant-object-oriented-php-output-of-mysql-data/feed/" rel="self" type="application/rss+xml" />
	<link>http://articles.akgfx.com/2008/04/more-elegant-object-oriented-php-output-of-mysql-data/</link>
	<description>A Compulsively Obsessing Blog</description>
	<lastBuildDate>Sun, 06 Mar 2011 23:12:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: john</title>
		<link>http://articles.akgfx.com/2008/04/more-elegant-object-oriented-php-output-of-mysql-data/comment-page-1/#comment-2381</link>
		<dc:creator>john</dc:creator>
		<pubDate>Fri, 21 Jan 2011 02:49:10 +0000</pubDate>
		<guid isPermaLink="false">http://articles.akgfx.com/?p=5#comment-2381</guid>
		<description>should be:
$id = intval($id);</description>
		<content:encoded><![CDATA[<p>should be:<br />
$id = intval($id);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Duppy</title>
		<link>http://articles.akgfx.com/2008/04/more-elegant-object-oriented-php-output-of-mysql-data/comment-page-1/#comment-1551</link>
		<dc:creator>Duppy</dc:creator>
		<pubDate>Sun, 07 Nov 2010 13:47:27 +0000</pubDate>
		<guid isPermaLink="false">http://articles.akgfx.com/?p=5#comment-1551</guid>
		<description>$id = mysql_real_escape_string($id); // better make sure it&#039;s safe!
    $query = &quot;SELECT u_username, u_firstName,
		u_lastName, u_email, u_phone FROM userTable WHERE u_id = $id&quot;;


It is not Safe mysql!
Try these:
?id=1+AND+1=1
?id=1+AND+1=2
?id=1+UNION+ALL+SELECT+1,2,3,4,5
?id=1+UNION+ALL+SELECT+1,version(),3,4,5
?id=1+UNION+ALL+SELECT+1,password,3,4,5+from+passwords_table+limit+1
etc...

The proper way is :

$id = mysql_real_escape_string($id); // better make sure it&#039;s safe!
    $query = &quot;SELECT u_username, u_firstName,
		u_lastName, u_email, u_phone FROM userTable WHERE u_id = &#039;$id&#039;  &quot;;</description>
		<content:encoded><![CDATA[<p>$id = mysql_real_escape_string($id); // better make sure it&#8217;s safe!<br />
    $query = &#8220;SELECT u_username, u_firstName,<br />
		u_lastName, u_email, u_phone FROM userTable WHERE u_id = $id&#8221;;</p>
<p>It is not Safe mysql!<br />
Try these:<br />
?id=1+AND+1=1<br />
?id=1+AND+1=2<br />
?id=1+UNION+ALL+SELECT+1,2,3,4,5<br />
?id=1+UNION+ALL+SELECT+1,version(),3,4,5<br />
?id=1+UNION+ALL+SELECT+1,password,3,4,5+from+passwords_table+limit+1<br />
etc&#8230;</p>
<p>The proper way is :</p>
<p>$id = mysql_real_escape_string($id); // better make sure it&#8217;s safe!<br />
    $query = &#8220;SELECT u_username, u_firstName,<br />
		u_lastName, u_email, u_phone FROM userTable WHERE u_id = &#8216;$id&#8217;  &#8220;;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.166 seconds -->

