<?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: Simple PHP PDO Wrapper : light, static, easy</title>
	<atom:link href="http://www.ajaxray.com/blog/2009/08/29/simple-php-pdo-wrapper-light-static-easy-to-use/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ajaxray.com/blog/2009/08/29/simple-php-pdo-wrapper-light-static-easy-to-use/</link>
	<description>Exploring PHP, MySql, Javascript, jQuery, Zend Framework and more... from Bangladesh</description>
	<lastBuildDate>Fri, 21 May 2010 22:36:42 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: win a netbook</title>
		<link>http://www.ajaxray.com/blog/2009/08/29/simple-php-pdo-wrapper-light-static-easy-to-use/comment-page-1/#comment-4036</link>
		<dc:creator>win a netbook</dc:creator>
		<pubDate>Thu, 20 May 2010 23:31:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxray.com/blog/?p=133#comment-4036</guid>
		<description>Thankyou lots, I have found this info very good!</description>
		<content:encoded><![CDATA[<p>Thankyou lots, I have found this info very good!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nedra Hurst</title>
		<link>http://www.ajaxray.com/blog/2009/08/29/simple-php-pdo-wrapper-light-static-easy-to-use/comment-page-1/#comment-4027</link>
		<dc:creator>Nedra Hurst</dc:creator>
		<pubDate>Sun, 16 May 2010 03:14:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxray.com/blog/?p=133#comment-4027</guid>
		<description>Hi,Excellent blog post dude! i am Tired of using RSS feeds and do you use twitter?so i can follow you there:D. 
PS:Have you considered putting video to the blog posts to keep the visitors more enjoyed?I think it works., Nedra Hurst</description>
		<content:encoded><![CDATA[<p>Hi,Excellent blog post dude! i am Tired of using RSS feeds and do you use twitter?so i can follow you there:D.<br />
PS:Have you considered putting video to the blog posts to keep the visitors more enjoyed?I think it works., Nedra Hurst</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bob</title>
		<link>http://www.ajaxray.com/blog/2009/08/29/simple-php-pdo-wrapper-light-static-easy-to-use/comment-page-1/#comment-4023</link>
		<dc:creator>bob</dc:creator>
		<pubDate>Fri, 14 May 2010 17:46:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxray.com/blog/?p=133#comment-4023</guid>
		<description>Hello Anis
thanks for sharing this piece of coding, i just have a question, (i just begin to learn pdo)
you do not use the function bindParam or bindValue in your _query function in Db.class, after the prepare  ?
i mean, in this manner, does the protection against SQL injection is active ?
did the use of bindValue or bindParam is adviced or you can forget it?
(sorry for my newb&#039;s answer.. and.. im french also
:)
thanks</description>
		<content:encoded><![CDATA[<p>Hello Anis<br />
thanks for sharing this piece of coding, i just have a question, (i just begin to learn pdo)<br />
you do not use the function bindParam or bindValue in your _query function in Db.class, after the prepare  ?<br />
i mean, in this manner, does the protection against SQL injection is active ?<br />
did the use of bindValue or bindParam is adviced or you can forget it?<br />
(sorry for my newb&#8217;s answer.. and.. im french also<br />
 <img src='http://www.ajaxray.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jenifer Speach</title>
		<link>http://www.ajaxray.com/blog/2009/08/29/simple-php-pdo-wrapper-light-static-easy-to-use/comment-page-1/#comment-3901</link>
		<dc:creator>Jenifer Speach</dc:creator>
		<pubDate>Tue, 16 Mar 2010 23:51:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxray.com/blog/?p=133#comment-3901</guid>
		<description>Your website is nice. I m gonna read all, ty for info. Continue doing on blog.</description>
		<content:encoded><![CDATA[<p>Your website is nice. I m gonna read all, ty for info. Continue doing on blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pablo</title>
		<link>http://www.ajaxray.com/blog/2009/08/29/simple-php-pdo-wrapper-light-static-easy-to-use/comment-page-1/#comment-3891</link>
		<dc:creator>pablo</dc:creator>
		<pubDate>Thu, 11 Mar 2010 06:20:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxray.com/blog/?p=133#comment-3891</guid>
		<description>bro you need more functions.

for example insert(tablename,array of data)

is a lot better than what you have right now which is:

  foreach($data as $user){
    db::execute(&#039;INSERT INTO users(username, password) VALUES(:name, :pass)&#039;, $user);
  }</description>
		<content:encoded><![CDATA[<p>bro you need more functions.</p>
<p>for example insert(tablename,array of data)</p>
<p>is a lot better than what you have right now which is:</p>
<p>  foreach($data as $user){<br />
    db::execute(&#8217;INSERT INTO users(username, password) VALUES(:name, :pass)&#8217;, $user);<br />
  }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven</title>
		<link>http://www.ajaxray.com/blog/2009/08/29/simple-php-pdo-wrapper-light-static-easy-to-use/comment-page-1/#comment-3889</link>
		<dc:creator>Steven</dc:creator>
		<pubDate>Tue, 09 Mar 2010 08:43:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxray.com/blog/?p=133#comment-3889</guid>
		<description>Hi

Tanks for this. 

I have a problem with and insert and update query. I&#039;m using CI and jqGrid. I have three sqlite tables that contain the data for three grids. The first 2 grids work perfectly but for some reason I get an exception when trying to insert/update data in the third grid. Exception is 25 bind or column index out of range. I have checked the columns passed against that specified in the database, the syntax is correct. Googeling for a solution produced no results.

Do you have any suggestions?</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Tanks for this. </p>
<p>I have a problem with and insert and update query. I&#8217;m using CI and jqGrid. I have three sqlite tables that contain the data for three grids. The first 2 grids work perfectly but for some reason I get an exception when trying to insert/update data in the third grid. Exception is 25 bind or column index out of range. I have checked the columns passed against that specified in the database, the syntax is correct. Googeling for a solution produced no results.</p>
<p>Do you have any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matts</title>
		<link>http://www.ajaxray.com/blog/2009/08/29/simple-php-pdo-wrapper-light-static-easy-to-use/comment-page-1/#comment-3517</link>
		<dc:creator>Matts</dc:creator>
		<pubDate>Tue, 10 Nov 2009 16:11:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxray.com/blog/?p=133#comment-3517</guid>
		<description>It would be nice to have detailed examples for these:

•setConnectionInfo($schema, $username = null, $password = null, $database = ‘mysql’, $hostname = ‘localhost’)
•execute($sql, $params = array()) – Execute a statement and returns number of effected rows
•getValue($sql, $params = array()) – Execute a statement and returns a single value
•getRow($sql, $params = array()) – Execute a statement and returns the first row as array
•getResult($sql, $params = array()) – Execute a statement and returns row(s) as 2D array
•getLastInsertId($sequenceName = “”) – Returns the last inserted id
•setFetchMode($fetchMode) – set the PDO fetch mode. Default is PDO::FETCH_ASSOC
•getPDOObject() – Returns a reference of connected PDO object.
•BeginTransaction()
•commitTransaction()
•rollbackTransaction()
•setDriverOptions(array $options) – Set PDO driver options to use while preparing statements.

Also with the array() in detail.

Good work !</description>
		<content:encoded><![CDATA[<p>It would be nice to have detailed examples for these:</p>
<p>•setConnectionInfo($schema, $username = null, $password = null, $database = ‘mysql’, $hostname = ‘localhost’)<br />
•execute($sql, $params = array()) – Execute a statement and returns number of effected rows<br />
•getValue($sql, $params = array()) – Execute a statement and returns a single value<br />
•getRow($sql, $params = array()) – Execute a statement and returns the first row as array<br />
•getResult($sql, $params = array()) – Execute a statement and returns row(s) as 2D array<br />
•getLastInsertId($sequenceName = “”) – Returns the last inserted id<br />
•setFetchMode($fetchMode) – set the PDO fetch mode. Default is PDO::FETCH_ASSOC<br />
•getPDOObject() – Returns a reference of connected PDO object.<br />
•BeginTransaction()<br />
•commitTransaction()<br />
•rollbackTransaction()<br />
•setDriverOptions(array $options) – Set PDO driver options to use while preparing statements.</p>
<p>Also with the array() in detail.</p>
<p>Good work !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anis Ahmad</title>
		<link>http://www.ajaxray.com/blog/2009/08/29/simple-php-pdo-wrapper-light-static-easy-to-use/comment-page-1/#comment-3451</link>
		<dc:creator>Anis Ahmad</dc:creator>
		<pubDate>Thu, 05 Nov 2009 03:49:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxray.com/blog/?p=133#comment-3451</guid>
		<description>@Cookie Monsta
Don&#039;t worry man :)
Static properties are considered as shared property through out an HTTP call. Not for all calls or all users.</description>
		<content:encoded><![CDATA[<p>@Cookie Monsta<br />
Don&#8217;t worry man <img src='http://www.ajaxray.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Static properties are considered as shared property through out an HTTP call. Not for all calls or all users.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cookie Monsta</title>
		<link>http://www.ajaxray.com/blog/2009/08/29/simple-php-pdo-wrapper-light-static-easy-to-use/comment-page-1/#comment-3448</link>
		<dc:creator>Cookie Monsta</dc:creator>
		<pubDate>Wed, 04 Nov 2009 19:08:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxray.com/blog/?p=133#comment-3448</guid>
		<description>Is it slower to use the same connection every time? 

If 5000 users are connected to the application, they will use the same DB connection since the class is static and no connection pool exist. Is this an issue?

I&#039;m not sure about this one.</description>
		<content:encoded><![CDATA[<p>Is it slower to use the same connection every time? </p>
<p>If 5000 users are connected to the application, they will use the same DB connection since the class is static and no connection pool exist. Is this an issue?</p>
<p>I&#8217;m not sure about this one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://www.ajaxray.com/blog/2009/08/29/simple-php-pdo-wrapper-light-static-easy-to-use/comment-page-1/#comment-2938</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 08 Sep 2009 13:00:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxray.com/blog/?p=133#comment-2938</guid>
		<description>Hi, 

Nice blog you have, have been reading few articles. 

I personally don&#039;t see the problem of hiding objects behind static methods. I have only recently started to use PDO and find this class a lo0t easier to use than PDO directly. 

Thanks for sharing.</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>Nice blog you have, have been reading few articles. </p>
<p>I personally don&#8217;t see the problem of hiding objects behind static methods. I have only recently started to use PDO and find this class a lo0t easier to use than PDO directly. </p>
<p>Thanks for sharing.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
