<?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 Model CRUD with PHP 5.3</title>
	<atom:link href="http://www.zacharyfox.com/blog/php/simple-model-crud-with-php-5-3/feed" rel="self" type="application/rss+xml" />
	<link>http://www.zacharyfox.com/blog/php/simple-model-crud-with-php-5-3</link>
	<description></description>
	<lastBuildDate>Sat, 22 Oct 2011 10:44:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: canadadeals.ca</title>
		<link>http://www.zacharyfox.com/blog/php/simple-model-crud-with-php-5-3/comment-page-1#comment-66151</link>
		<dc:creator>canadadeals.ca</dc:creator>
		<pubDate>Wed, 06 Jul 2011 03:14:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.zacharyfox.com/blog/?p=65#comment-66151</guid>
		<description>Great code thank you.</description>
		<content:encoded><![CDATA[<p>Great code thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TJ</title>
		<link>http://www.zacharyfox.com/blog/php/simple-model-crud-with-php-5-3/comment-page-1#comment-55097</link>
		<dc:creator>TJ</dc:creator>
		<pubDate>Tue, 19 Apr 2011 18:11:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.zacharyfox.com/blog/?p=65#comment-55097</guid>
		<description>Moroswitie that makes sense, just pass it from your extended class.. Great post :)</description>
		<content:encoded><![CDATA[<p>Moroswitie that makes sense, just pass it from your extended class.. Great post <img src='http://www.zacharyfox.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Moroswitie</title>
		<link>http://www.zacharyfox.com/blog/php/simple-model-crud-with-php-5-3/comment-page-1#comment-20105</link>
		<dc:creator>Moroswitie</dc:creator>
		<pubDate>Tue, 08 Jun 2010 23:01:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.zacharyfox.com/blog/?p=65#comment-20105</guid>
		<description>Nice post,
will give this a try and adjust a couple of small things.
How would you go about having a dynamic &quot;id&quot;
could you pass in an extra parameter, so that for different models you could use:
car_id, user_id, etc. (instead of a fixed &#039;id&#039; field)

Note: you shouldn&#039;t use MAX(id) to get the current highest ID, use last insertID.</description>
		<content:encoded><![CDATA[<p>Nice post,<br />
will give this a try and adjust a couple of small things.<br />
How would you go about having a dynamic &#8220;id&#8221;<br />
could you pass in an extra parameter, so that for different models you could use:<br />
car_id, user_id, etc. (instead of a fixed &#8216;id&#8217; field)</p>
<p>Note: you shouldn&#8217;t use MAX(id) to get the current highest ID, use last insertID.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.zacharyfox.com/blog/php/simple-model-crud-with-php-5-3/comment-page-1#comment-15827</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Sun, 14 Feb 2010 16:52:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.zacharyfox.com/blog/?p=65#comment-15827</guid>
		<description>Hey, 

This is awesome, I&#039;ve been looking for something with reflection in it for ages! I&#039;m a little confused with what the fetchColumns() function does. You&#039;re calling it on the table representation, but that is not documented here. 

Please let me know. 

Andy</description>
		<content:encoded><![CDATA[<p>Hey, </p>
<p>This is awesome, I&#8217;ve been looking for something with reflection in it for ages! I&#8217;m a little confused with what the fetchColumns() function does. You&#8217;re calling it on the table representation, but that is not documented here. </p>
<p>Please let me know. </p>
<p>Andy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric L</title>
		<link>http://www.zacharyfox.com/blog/php/simple-model-crud-with-php-5-3/comment-page-1#comment-14674</link>
		<dc:creator>Eric L</dc:creator>
		<pubDate>Fri, 08 Jan 2010 02:15:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.zacharyfox.com/blog/?p=65#comment-14674</guid>
		<description>Hi,

Nice piece of code! I will probably try it but for now there is some little things I don&#039;t understand well...

In the delete() function, why are you storing your your SQL statement in a $delete variable that you never use again. Maybe the next line should be :

$statement = $db-&gt;prepare($delete);  &quot;instead of : &quot; $statement = $db-&gt;prepare($statement);

If possible I would also know more about the global variable $db that should contain a PDO object. I read some tutorial about PDO objects like the one at : &quot;http://www.phpro.org/tutorials/Introduction-to-PHP-PDO.html&quot; but they don&#039;t use it the same way.

Thanks you,

Eric</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Nice piece of code! I will probably try it but for now there is some little things I don&#8217;t understand well&#8230;</p>
<p>In the delete() function, why are you storing your your SQL statement in a $delete variable that you never use again. Maybe the next line should be :</p>
<p>$statement = $db-&gt;prepare($delete);  &#8220;instead of : &#8221; $statement = $db-&gt;prepare($statement);</p>
<p>If possible I would also know more about the global variable $db that should contain a PDO object. I read some tutorial about PDO objects like the one at : &#8220;http://www.phpro.org/tutorials/Introduction-to-PHP-PDO.html&#8221; but they don&#8217;t use it the same way.</p>
<p>Thanks you,</p>
<p>Eric</p>
]]></content:encoded>
	</item>
</channel>
</rss>

