<?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: ezSQL Database Library (Improved!)</title>
	<atom:link href="http://nabeelio.com/2009/02/ezsql-improved/feed/" rel="self" type="application/rss+xml" />
	<link>http://nabeelio.com/2009/02/ezsql-improved/</link>
	<description></description>
	<lastBuildDate>Fri, 03 Feb 2012 14:15:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Nabeel</title>
		<link>http://nabeelio.com/2009/02/ezsql-improved/comment-page-1/#comment-478</link>
		<dc:creator>Nabeel</dc:creator>
		<pubDate>Mon, 17 Jan 2011 02:01:25 +0000</pubDate>
		<guid isPermaLink="false">http://nsslive.net/2009/02/03/database-abstraction-library/#comment-478</guid>
		<description>Thanks for the kind words, Josh! I was in the same position</description>
		<content:encoded><![CDATA[<p>Thanks for the kind words, Josh! I was in the same position</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://nabeelio.com/2009/02/ezsql-improved/comment-page-1/#comment-474</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Sun, 16 Jan 2011 02:52:19 +0000</pubDate>
		<guid isPermaLink="false">http://nsslive.net/2009/02/03/database-abstraction-library/#comment-474</guid>
		<description>You are officially my new hero.  I loved ez_sql and have used it forever.  However, it did not support mysql routines and I have started using them recently on a major project.  I was so bumbed, but your ezdb for mysqli is awesome and saved me tons of work.  Thank so much.</description>
		<content:encoded><![CDATA[<p>You are officially my new hero.  I loved ez_sql and have used it forever.  However, it did not support mysql routines and I have started using them recently on a major project.  I was so bumbed, but your ezdb for mysqli is awesome and saved me tons of work.  Thank so much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://nabeelio.com/2009/02/ezsql-improved/comment-page-1/#comment-286</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Sat, 17 Apr 2010 16:57:02 +0000</pubDate>
		<guid isPermaLink="false">http://nsslive.net/2009/02/03/database-abstraction-library/#comment-286</guid>
		<description>i found the problem  i was sending constants instead of vars</description>
		<content:encoded><![CDATA[<p>i found the problem  i was sending constants instead of vars</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nabeel</title>
		<link>http://nabeelio.com/2009/02/ezsql-improved/comment-page-1/#comment-285</link>
		<dc:creator>Nabeel</dc:creator>
		<pubDate>Sat, 17 Apr 2010 16:24:40 +0000</pubDate>
		<guid isPermaLink="false">http://nsslive.net/2009/02/03/database-abstraction-library/#comment-285</guid>
		<description>Hi Mike,

Here is my example of usage, I need to update the docs on github to show, but the purpose of creating the class first is for the debug messages.

http://github.com/nshahzad/phpVMS/blob/master/core/codon.config.php#L84</description>
		<content:encoded><![CDATA[<p>Hi Mike,</p>
<p>Here is my example of usage, I need to update the docs on github to show, but the purpose of creating the class first is for the debug messages.</p>
<p><a href="http://github.com/nshahzad/phpVMS/blob/master/core/codon.config.php#L84" rel="nofollow">http://github.com/nshahzad/phpVMS/blob/master/core/codon.config.php#L84</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://nabeelio.com/2009/02/ezsql-improved/comment-page-1/#comment-284</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Sat, 17 Apr 2010 16:11:58 +0000</pubDate>
		<guid isPermaLink="false">http://nsslive.net/2009/02/03/database-abstraction-library/#comment-284</guid>
		<description>i downloaded and created an example however it will not connect to the db.  And when I look at the DB class it in turn tries to create an ezMySQL object before it connects to the db. I am a beginner.  I think the db class should connect to the DB first. then you should create the SQL object. 

	public static function init($type=&#039;mysql&#039;)
	{
		
		if($type == &#039;mysql&#039; &#124;&#124; $type == &#039;&#039;)
		{
			if(!self::$DB = new ezSQL_mysql())
			{
echo &#039;error initializing&#039;;
				self::$error = self::$DB-&gt;error;
				self::$errno = self::$DB-&gt;errno;
			
				return false;
			}

doesnt generate an error but it should because it is expecting DB connection data which is never passed upon calling init.

just a beginners 2 cents.

here is my example that doesnt work.

DB::init(&#039;mysql&#039;);
DB::debug();
DB::connect(MYSQLHOST,MYSQLUSER,MYSQLPASSWORD,MYSQLDB);
$fields = array(&#039;form_id&#039;, &#039;name&#039;);
$results = DB::quick_select(&#039;class_form_elements&#039;, $fields, &quot;form_id=0&quot;);
DB::debug();
if($results)
{
    foreach($results as $row)
    {
        echo $row-&gt;name;
    }
}


oh and I changed the order of the params in the class to match above so that isnt the issue.</description>
		<content:encoded><![CDATA[<p>i downloaded and created an example however it will not connect to the db.  And when I look at the DB class it in turn tries to create an ezMySQL object before it connects to the db. I am a beginner.  I think the db class should connect to the DB first. then you should create the SQL object. </p>
<p>	public static function init($type=&#8217;mysql&#8217;)<br />
	{</p>
<p>		if($type == &#8216;mysql&#8217; || $type == &#8221;)<br />
		{<br />
			if(!self::$DB = new ezSQL_mysql())<br />
			{<br />
echo &#8216;error initializing&#8217;;<br />
				self::$error = self::$DB-&gt;error;<br />
				self::$errno = self::$DB-&gt;errno;</p>
<p>				return false;<br />
			}</p>
<p>doesnt generate an error but it should because it is expecting DB connection data which is never passed upon calling init.</p>
<p>just a beginners 2 cents.</p>
<p>here is my example that doesnt work.</p>
<p>DB::init(&#8216;mysql&#8217;);<br />
DB::debug();<br />
DB::connect(MYSQLHOST,MYSQLUSER,MYSQLPASSWORD,MYSQLDB);<br />
$fields = array(&#8216;form_id&#8217;, &#8216;name&#8217;);<br />
$results = DB::quick_select(&#8216;class_form_elements&#8217;, $fields, &#8220;form_id=0&#8243;);<br />
DB::debug();<br />
if($results)<br />
{<br />
    foreach($results as $row)<br />
    {<br />
        echo $row-&gt;name;<br />
    }<br />
}</p>
<p>oh and I changed the order of the params in the class to match above so that isnt the issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nabeel</title>
		<link>http://nabeelio.com/2009/02/ezsql-improved/comment-page-1/#comment-131</link>
		<dc:creator>Nabeel</dc:creator>
		<pubDate>Wed, 01 Jul 2009 19:35:28 +0000</pubDate>
		<guid isPermaLink="false">http://nsslive.net/2009/02/03/database-abstraction-library/#comment-131</guid>
		<description>Yes, if you view my latest post, it&#039;s changed</description>
		<content:encoded><![CDATA[<p>Yes, if you view my latest post, it&#8217;s changed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://nabeelio.com/2009/02/ezsql-improved/comment-page-1/#comment-130</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Wed, 01 Jul 2009 19:34:03 +0000</pubDate>
		<guid isPermaLink="false">http://nsslive.net/2009/02/03/database-abstraction-library/#comment-130</guid>
		<description>My last note to put in your comments is that your link above to github is a 404 now.</description>
		<content:encoded><![CDATA[<p>My last note to put in your comments is that your link above to github is a 404 now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nabeel</title>
		<link>http://nabeelio.com/2009/02/ezsql-improved/comment-page-1/#comment-129</link>
		<dc:creator>Nabeel</dc:creator>
		<pubDate>Tue, 30 Jun 2009 00:01:28 +0000</pubDate>
		<guid isPermaLink="false">http://nsslive.net/2009/02/03/database-abstraction-library/#comment-129</guid>
		<description>@Richard - Yes, there&#039;s bug fixes and all the like now. Github has the Issues page as well, so if you come across anything, I can fix it and distribute it much more easily now. Thanks!</description>
		<content:encoded><![CDATA[<p>@Richard &#8211; Yes, there&#8217;s bug fixes and all the like now. Github has the Issues page as well, so if you come across anything, I can fix it and distribute it much more easily now. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://nabeelio.com/2009/02/ezsql-improved/comment-page-1/#comment-128</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Mon, 29 Jun 2009 23:29:59 +0000</pubDate>
		<guid isPermaLink="false">http://nsslive.net/2009/02/03/database-abstraction-library/#comment-128</guid>
		<description>I&#039;ve noticed you&#039;re working on this on github now. Is there a newer version? I used your class successfully once or twice, and then started running into errors, and haven&#039;t looked into it since.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve noticed you&#8217;re working on this on github now. Is there a newer version? I used your class successfully once or twice, and then started running into errors, and haven&#8217;t looked into it since.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nabeel</title>
		<link>http://nabeelio.com/2009/02/ezsql-improved/comment-page-1/#comment-34</link>
		<dc:creator>Nabeel</dc:creator>
		<pubDate>Tue, 24 Feb 2009 03:45:35 +0000</pubDate>
		<guid isPermaLink="false">http://nsslive.net/2009/02/03/database-abstraction-library/#comment-34</guid>
		<description>&lt;a href=&quot;#comment-29&quot; rel=&quot;nofollow&quot;&gt;@Richard&lt;/a&gt; 
Sorry about that! Moved servers recently, mistyped the download link! Should be workin&#039; now</description>
		<content:encoded><![CDATA[<p><a href="#comment-29" rel="nofollow">@Richard</a><br />
Sorry about that! Moved servers recently, mistyped the download link! Should be workin&#8217; now</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 1/16 queries in 0.029 seconds using apc
Object Caching 414/426 objects using apc

Served from: nabeelio.com @ 2012-02-05 23:53:52 -->
