<?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 for Edward Yarnold</title>
	<atom:link href="http://www.edwardyarnold.co.uk/blog/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://www.edwardyarnold.co.uk/blog</link>
	<description>PHP &#38; MySQL Web Developer</description>
	<lastBuildDate>Wed, 04 Aug 2010 13:01:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>Comment on Coding things the quick way &#8211; often a false economy by Ed Yarnold</title>
		<link>http://www.edwardyarnold.co.uk/blog/coding-things-the-quick-way-often-false-economy/comment-page-1#comment-271</link>
		<dc:creator>Ed Yarnold</dc:creator>
		<pubDate>Wed, 04 Aug 2010 13:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardyarnold.co.uk/blog/?p=129#comment-271</guid>
		<description>Wow, thanks Tom. Never thought of doing it that way!  I must investigate triggers and views some more, I&#039;ve never used them myself (not yet anyway).</description>
		<content:encoded><![CDATA[<p>Wow, thanks Tom. Never thought of doing it that way!  I must investigate triggers and views some more, I&#8217;ve never used them myself (not yet anyway).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Coding things the quick way &#8211; often a false economy by Tom</title>
		<link>http://www.edwardyarnold.co.uk/blog/coding-things-the-quick-way-often-false-economy/comment-page-1#comment-270</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 04 Aug 2010 12:24:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardyarnold.co.uk/blog/?p=129#comment-270</guid>
		<description>Alternatively you could cater for this in your database rather than modifying your script.

In MySQL you can make use of triggers and views to accomplish what you&#039;re after; set triggers on DELETE statements to update the record with is_deleted = 1, and views to select table contents where is_deleted = 0.

The only change you&#039;d need to make to your model(s) is to select from the view rather than the actual table.</description>
		<content:encoded><![CDATA[<p>Alternatively you could cater for this in your database rather than modifying your script.</p>
<p>In MySQL you can make use of triggers and views to accomplish what you&#8217;re after; set triggers on DELETE statements to update the record with is_deleted = 1, and views to select table contents where is_deleted = 0.</p>
<p>The only change you&#8217;d need to make to your model(s) is to select from the view rather than the actual table.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Should you sanitise your HTML before or after you save to your database? by Ed Yarnold</title>
		<link>http://www.edwardyarnold.co.uk/blog/when-to-sanitise-data/comment-page-1#comment-32</link>
		<dc:creator>Ed Yarnold</dc:creator>
		<pubDate>Mon, 26 Apr 2010 10:14:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardyarnold.co.uk/blog/?p=85#comment-32</guid>
		<description>Can&#039;t believe I missed that point, Tom!  I had that very situation a few weeks ago.  A site had been built where all data was htmlentitied.  We wanted to export a stock list to PDF but had to unhtmlentity everything first.  Not a pretty solution, and it could have been avoided with a bit of foresightedness!</description>
		<content:encoded><![CDATA[<p>Can&#8217;t believe I missed that point, Tom!  I had that very situation a few weeks ago.  A site had been built where all data was htmlentitied.  We wanted to export a stock list to PDF but had to unhtmlentity everything first.  Not a pretty solution, and it could have been avoided with a bit of foresightedness!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Should you sanitise your HTML before or after you save to your database? by Tom</title>
		<link>http://www.edwardyarnold.co.uk/blog/when-to-sanitise-data/comment-page-1#comment-28</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Sat, 24 Apr 2010 23:12:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardyarnold.co.uk/blog/?p=85#comment-28</guid>
		<description>In my mind it&#039;s clear - always perform data filtering on output. Why? Because it offers more flexibilty. Sure, you may just be displaying  data on a web page for now, but if you want to be more creative in future (e.g. export to Excel or PDF) you&#039;ll likely not want special characters escaped to HTML entities and the like.</description>
		<content:encoded><![CDATA[<p>In my mind it&#8217;s clear &#8211; always perform data filtering on output. Why? Because it offers more flexibilty. Sure, you may just be displaying  data on a web page for now, but if you want to be more creative in future (e.g. export to Excel or PDF) you&#8217;ll likely not want special characters escaped to HTML entities and the like.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How I organise my project information to save time. by Paul</title>
		<link>http://www.edwardyarnold.co.uk/blog/organisation-time-saving/comment-page-1#comment-19</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Fri, 16 Apr 2010 07:08:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardyarnold.co.uk/blog/?p=51#comment-19</guid>
		<description>I recently started at a company where none of the project names seemed to be consistent.  Some referred to the site name, some to the URL of the site, others to the name of the company commissioning the web site.  You are right; it was incredibly frustrating having to guess where to look when I was asked to make changes to particular web sites.  I can see that naming things consistently could save a great deal of time.  I&#039;m going to try to introduce these guidelines in my workplace! Thanks again!</description>
		<content:encoded><![CDATA[<p>I recently started at a company where none of the project names seemed to be consistent.  Some referred to the site name, some to the URL of the site, others to the name of the company commissioning the web site.  You are right; it was incredibly frustrating having to guess where to look when I was asked to make changes to particular web sites.  I can see that naming things consistently could save a great deal of time.  I&#8217;m going to try to introduce these guidelines in my workplace! Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP Developers (and Web Design companies): Consider using someone else to check your work! by Ed Yarnold</title>
		<link>http://www.edwardyarnold.co.uk/blog/php-developers-and-web-design-companies-consider-using-someone-else-to-check-your-work/comment-page-1#comment-18</link>
		<dc:creator>Ed Yarnold</dc:creator>
		<pubDate>Thu, 15 Apr 2010 12:25:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardyarnold.co.uk/blog/?p=31#comment-18</guid>
		<description>Thanks - I just redesigned (and recoded all of the html) so any issues that were here a week or so ago should have disappeared by now. :)</description>
		<content:encoded><![CDATA[<p>Thanks &#8211; I just redesigned (and recoded all of the html) so any issues that were here a week or so ago should have disappeared by now. <img src='http://www.edwardyarnold.co.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP Developers (and Web Design companies): Consider using someone else to check your work! by Jones SEO</title>
		<link>http://www.edwardyarnold.co.uk/blog/php-developers-and-web-design-companies-consider-using-someone-else-to-check-your-work/comment-page-1#comment-12</link>
		<dc:creator>Jones SEO</dc:creator>
		<pubDate>Thu, 08 Apr 2010 16:16:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardyarnold.co.uk/blog/?p=31#comment-12</guid>
		<description>Hello there. I just realized that your blog seems like it has a few code problems at the very bottom of your website&#039;s page. I don&#039;t know if absolutely everyone is getting this identical bugginess when exploring your site? I will be employing a totally different browser than most people, referred to as Opera, so that is what might be causing it? I just wanted to make certain you realize. Thanks for posting some great posts and I&#039;ll try to return back with a very different browser to check things out!</description>
		<content:encoded><![CDATA[<p>Hello there. I just realized that your blog seems like it has a few code problems at the very bottom of your website&#8217;s page. I don&#8217;t know if absolutely everyone is getting this identical bugginess when exploring your site? I will be employing a totally different browser than most people, referred to as Opera, so that is what might be causing it? I just wanted to make certain you realize. Thanks for posting some great posts and I&#8217;ll try to return back with a very different browser to check things out!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
