<?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: Mysql Class for php5 using singleton</title>
	<atom:link href="http://djpate.com/2009/05/22/mysql-class-for-php5-using-singleton/feed/" rel="self" type="application/rss+xml" />
	<link>http://djpate.com/2009/05/22/mysql-class-for-php5-using-singleton/</link>
	<description>A do-it yourself blog</description>
	<lastBuildDate>Mon, 23 Apr 2012 20:30:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Christophe Verbinnen</title>
		<link>http://djpate.com/2009/05/22/mysql-class-for-php5-using-singleton/comment-page-1/#comment-5626</link>
		<dc:creator>Christophe Verbinnen</dc:creator>
		<pubDate>Sat, 12 Feb 2011 08:44:41 +0000</pubDate>
		<guid isPermaLink="false">http://djpate.com/?p=30#comment-5626</guid>
		<description>You are right about comments and names but It&#039;s true that I like short name because when I use 20 queries on a page I prefer to write q than query.

That script is old anyway and I shoud post a new one...

Thanks for the comment</description>
		<content:encoded><![CDATA[<p>You are right about comments and names but It&#8217;s true that I like short name because when I use 20 queries on a page I prefer to write q than query.</p>
<p>That script is old anyway and I shoud post a new one&#8230;</p>
<p>Thanks for the comment</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jorge</title>
		<link>http://djpate.com/2009/05/22/mysql-class-for-php5-using-singleton/comment-page-1/#comment-5625</link>
		<dc:creator>jorge</dc:creator>
		<pubDate>Sat, 12 Feb 2011 08:40:38 +0000</pubDate>
		<guid isPermaLink="false">http://djpate.com/?p=30#comment-5625</guid>
		<description>I think you should use more descriptive names in both functions and variables. 
Furthermore add more comments could be great. For instance:

 public function query($query_string){
// Execute an SQL query. If there is an
// error, prints mysql_error().

 $result = @mysql_query($query) or die(&quot;&lt;b&gt;Last query : &lt;/b&gt;$query Error: &quot;.mysql_error().&quot;&quot;);
 return $result;
 }

Instead

 public function q($query){
 $r = @mysql_query($query) or die(&quot;&lt;b&gt;Error : &lt;/b&gt;$query&quot;.mysql_error().&quot;&quot;);
 return $r;
 }

Nevertheless, thanks for the script.</description>
		<content:encoded><![CDATA[<p>I think you should use more descriptive names in both functions and variables.<br />
Furthermore add more comments could be great. For instance:</p>
<p> public function query($query_string){<br />
// Execute an SQL query. If there is an<br />
// error, prints mysql_error().</p>
<p> $result = @mysql_query($query) or die(&#8220;<b>Last query : </b>$query Error: &#8220;.mysql_error().&#8221;");<br />
 return $result;<br />
 }</p>
<p>Instead</p>
<p> public function q($query){<br />
 $r = @mysql_query($query) or die(&#8220;<b>Error : </b>$query&#8221;.mysql_error().&#8221;");<br />
 return $r;<br />
 }</p>
<p>Nevertheless, thanks for the script.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

