<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: pdo and extending mysqli</title>
	<link>http://blog.myhat.de/2007/06/26/pdo-and-extending-mysqli/</link>
	<description>jacob wants to say something...</description>
	<pubDate>Sun, 20 May 2012 17:27:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>

	<item>
		<title>By: 4656</title>
		<link>http://blog.myhat.de/2007/06/26/pdo-and-extending-mysqli/#comment-78</link>
		<dc:creator>4656</dc:creator>
		<pubDate>Sun, 23 May 2010 11:48:02 +0000</pubDate>
		<guid>http://blog.myhat.de/2007/06/26/pdo-and-extending-mysqli/#comment-78</guid>
		<description>tzr56z</description>
		<content:encoded><![CDATA[<p>tzr56z</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jules manson</title>
		<link>http://blog.myhat.de/2007/06/26/pdo-and-extending-mysqli/#comment-77</link>
		<dc:creator>jules manson</dc:creator>
		<pubDate>Mon, 25 Jan 2010 17:08:50 +0000</pubDate>
		<guid>http://blog.myhat.de/2007/06/26/pdo-and-extending-mysqli/#comment-77</guid>
		<description>I am new to web developing. I liked your post on extending mysqli. I won't be using PDO but I have been using prepared statements with mysqli using my own abstraction class. I am not a professional web developer so I have to depend on good (as opposed to bad) tutorials such as this one and php/mysql manuals on the net. There is very little written about prep statements on the net. Can you recommend a good source (link) or book for using the mysqli stmt class?</description>
		<content:encoded><![CDATA[<p>I am new to web developing. I liked your post on extending mysqli. I won&#8217;t be using PDO but I have been using prepared statements with mysqli using my own abstraction class. I am not a professional web developer so I have to depend on good (as opposed to bad) tutorials such as this one and php/mysql manuals on the net. There is very little written about prep statements on the net. Can you recommend a good source (link) or book for using the mysqli stmt class?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryon Bean</title>
		<link>http://blog.myhat.de/2007/06/26/pdo-and-extending-mysqli/#comment-76</link>
		<dc:creator>Bryon Bean</dc:creator>
		<pubDate>Sun, 06 Dec 2009 16:33:31 +0000</pubDate>
		<guid>http://blog.myhat.de/2007/06/26/pdo-and-extending-mysqli/#comment-76</guid>
		<description>Great article and nice code. Thanks.</description>
		<content:encoded><![CDATA[<p>Great article and nice code. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://blog.myhat.de/2007/06/26/pdo-and-extending-mysqli/#comment-75</link>
		<dc:creator>David</dc:creator>
		<pubDate>Thu, 05 Nov 2009 09:48:58 +0000</pubDate>
		<guid>http://blog.myhat.de/2007/06/26/pdo-and-extending-mysqli/#comment-75</guid>
		<description>What's wrong with this sort of classical singleton?
I'm out of practice with PHP but this sort of thing holds up in other languages I use.

&lt;code&gt;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>What&#8217;s wrong with this sort of classical singleton?<br />
I&#8217;m out of practice with PHP but this sort of thing holds up in other languages I use.</p>
<p><code></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ian</title>
		<link>http://blog.myhat.de/2007/06/26/pdo-and-extending-mysqli/#comment-68</link>
		<dc:creator>ian</dc:creator>
		<pubDate>Thu, 04 Dec 2008 17:47:57 +0000</pubDate>
		<guid>http://blog.myhat.de/2007/06/26/pdo-and-extending-mysqli/#comment-68</guid>
		<description>If you like foreach syntax then you can use the IteratorAggregate interface. In your public function getIterator, just create the array that you want to return to the foreach loop.

Oh, another advantage is that mysqli can fetch the results from stored procedures in your mysql db, which the regular mysql cannot.</description>
		<content:encoded><![CDATA[<p>If you like foreach syntax then you can use the IteratorAggregate interface. In your public function getIterator, just create the array that you want to return to the foreach loop.</p>
<p>Oh, another advantage is that mysqli can fetch the results from stored procedures in your mysql db, which the regular mysql cannot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Judah</title>
		<link>http://blog.myhat.de/2007/06/26/pdo-and-extending-mysqli/#comment-65</link>
		<dc:creator>Judah</dc:creator>
		<pubDate>Tue, 26 Aug 2008 19:05:04 +0000</pubDate>
		<guid>http://blog.myhat.de/2007/06/26/pdo-and-extending-mysqli/#comment-65</guid>
		<description>in DB::query() if the $sql that is run is an INSERT/UPDATE/DELETE (aka none result set query), would this break the function?</description>
		<content:encoded><![CDATA[<p>in DB::query() if the $sql that is run is an INSERT/UPDATE/DELETE (aka none result set query), would this break the function?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phelgma</title>
		<link>http://blog.myhat.de/2007/06/26/pdo-and-extending-mysqli/#comment-63</link>
		<dc:creator>Phelgma</dc:creator>
		<pubDate>Thu, 31 Jul 2008 16:42:50 +0000</pubDate>
		<guid>http://blog.myhat.de/2007/06/26/pdo-and-extending-mysqli/#comment-63</guid>
		<description>http://bugs.php.net/bug.php?id=40880</description>
		<content:encoded><![CDATA[<p><a href="http://bugs.php.net/bug.php?id=40880" rel="nofollow">http://bugs.php.net/bug.php?id=40880</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phelgma</title>
		<link>http://blog.myhat.de/2007/06/26/pdo-and-extending-mysqli/#comment-62</link>
		<dc:creator>Phelgma</dc:creator>
		<pubDate>Thu, 31 Jul 2008 16:31:40 +0000</pubDate>
		<guid>http://blog.myhat.de/2007/06/26/pdo-and-extending-mysqli/#comment-62</guid>
		<description>Sorry, you actually answer my question in your article -.-
But the constructor is a problem.</description>
		<content:encoded><![CDATA[<p>Sorry, you actually answer my question in your article -.-<br />
But the constructor is a problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phelgma</title>
		<link>http://blog.myhat.de/2007/06/26/pdo-and-extending-mysqli/#comment-61</link>
		<dc:creator>Phelgma</dc:creator>
		<pubDate>Thu, 31 Jul 2008 16:16:05 +0000</pubDate>
		<guid>http://blog.myhat.de/2007/06/26/pdo-and-extending-mysqli/#comment-61</guid>
		<description>Hi,
I'm currently about to write a Database class and I want to use a Singleton. Now the problem: It's not possible to redeclare the accessibility of the constructor! And that's actually what you do.
The other thing is to extend these Result and Stmt classes... how do you return an object of these extended classes from your queries?
I made a DB class using a MySQLi object (without inheritance), that seems to be the only (not simple) solution...
BTW: Another advantage for MySQLi: multi_query

regards, Ph</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I&#8217;m currently about to write a Database class and I want to use a Singleton. Now the problem: It&#8217;s not possible to redeclare the accessibility of the constructor! And that&#8217;s actually what you do.<br />
The other thing is to extend these Result and Stmt classes&#8230; how do you return an object of these extended classes from your queries?<br />
I made a DB class using a MySQLi object (without inheritance), that seems to be the only (not simple) solution&#8230;<br />
BTW: Another advantage for MySQLi: multi_query</p>
<p>regards, Ph</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RecoilUK</title>
		<link>http://blog.myhat.de/2007/06/26/pdo-and-extending-mysqli/#comment-60</link>
		<dc:creator>RecoilUK</dc:creator>
		<pubDate>Mon, 30 Jun 2008 08:10:33 +0000</pubDate>
		<guid>http://blog.myhat.de/2007/06/26/pdo-and-extending-mysqli/#comment-60</guid>
		<description>Hi

Good article, very informative.

However there are a couple of things I dont understand.

I think the reason for rewriting the prepare method is so that the prepared statements all use the same database connection, but i,m not sure of the reason to rewrite the query method.

And also, you say to also extend the MySQLi_Stmt and MySQLi_Result classes but then you dont actually do it???

I,m probably just not understanding it correctly so maybe you could clear this up for me.

Thanks</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Good article, very informative.</p>
<p>However there are a couple of things I dont understand.</p>
<p>I think the reason for rewriting the prepare method is so that the prepared statements all use the same database connection, but i,m not sure of the reason to rewrite the query method.</p>
<p>And also, you say to also extend the MySQLi_Stmt and MySQLi_Result classes but then you dont actually do it???</p>
<p>I,m probably just not understanding it correctly so maybe you could clear this up for me.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
