<?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: You Suck At Programming And I Hate You: Things NEVER To Do In PHP &amp; SQL</title>
	<atom:link href="http://www.htmlist.com/development/you-suck-at-programming-and-i-hate-you-things-never-to-do-in-php-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.htmlist.com/development/you-suck-at-programming-and-i-hate-you-things-never-to-do-in-php-sql/</link>
	<description>A Web Development Blog by Synapse Studios</description>
	<lastBuildDate>Sun, 05 Feb 2012 02:47:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Eric Muyser</title>
		<link>http://www.htmlist.com/development/you-suck-at-programming-and-i-hate-you-things-never-to-do-in-php-sql/comment-page-1/#comment-570</link>
		<dc:creator>Eric Muyser</dc:creator>
		<pubDate>Sun, 23 May 2010 14:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.htmlist.com/?p=94#comment-570</guid>
		<description>Output Methods Alternative:

$html = &lt;&lt;&lt; EOH

any HTML allowed herer

EOH;</description>
		<content:encoded><![CDATA[<p>Output Methods Alternative:</p>
<p>$html = &lt;&lt;&lt; EOH</p>
<p>any HTML allowed herer</p>
<p>EOH;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dom</title>
		<link>http://www.htmlist.com/development/you-suck-at-programming-and-i-hate-you-things-never-to-do-in-php-sql/comment-page-1/#comment-180</link>
		<dc:creator>Dom</dc:creator>
		<pubDate>Fri, 14 Nov 2008 11:18:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.htmlist.com/?p=94#comment-180</guid>
		<description>When I edited php for the first time ever, even I had the common sense to put the html code outside the php tags.</description>
		<content:encoded><![CDATA[<p>When I edited php for the first time ever, even I had the common sense to put the html code outside the php tags.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Bernal</title>
		<link>http://www.htmlist.com/development/you-suck-at-programming-and-i-hate-you-things-never-to-do-in-php-sql/comment-page-1/#comment-121</link>
		<dc:creator>David Bernal</dc:creator>
		<pubDate>Mon, 04 Aug 2008 18:12:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.htmlist.com/?p=94#comment-121</guid>
		<description>Nate:
I do actually mention mysql_real_escape_string, which is like mysql_escape_string, but it takes into account the current character set.

TWD:
That is another good option for formatting your queries. Personally, I find concatenating and using single-quotes easier to read, but that&#039;s more of a style thing. A third option would be to use sprintf.</description>
		<content:encoded><![CDATA[<p>Nate:<br />
I do actually mention mysql_real_escape_string, which is like mysql_escape_string, but it takes into account the current character set.</p>
<p>TWD:<br />
That is another good option for formatting your queries. Personally, I find concatenating and using single-quotes easier to read, but that&#8217;s more of a style thing. A third option would be to use sprintf.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TWD</title>
		<link>http://www.htmlist.com/development/you-suck-at-programming-and-i-hate-you-things-never-to-do-in-php-sql/comment-page-1/#comment-120</link>
		<dc:creator>TWD</dc:creator>
		<pubDate>Sun, 03 Aug 2008 16:33:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.htmlist.com/?p=94#comment-120</guid>
		<description>Here’s another tip that I see a lot that drives me absolutely nuts: Unnecessarily concatenated strings. PHP provide many great ways to include variables into strings. I would have written your query this way:

mysql_query(”INSERT INTO schools VALUES(’{$busId}’, ‘{$busname}’, ‘{$name}’, ‘{$address}’, ‘{$city}’)”);</description>
		<content:encoded><![CDATA[<p>Here’s another tip that I see a lot that drives me absolutely nuts: Unnecessarily concatenated strings. PHP provide many great ways to include variables into strings. I would have written your query this way:</p>
<p>mysql_query(”INSERT INTO schools VALUES(’{$busId}’, ‘{$busname}’, ‘{$name}’, ‘{$address}’, ‘{$city}’)”);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate True</title>
		<link>http://www.htmlist.com/development/you-suck-at-programming-and-i-hate-you-things-never-to-do-in-php-sql/comment-page-1/#comment-118</link>
		<dc:creator>Nate True</dc:creator>
		<pubDate>Sun, 03 Aug 2008 03:56:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.htmlist.com/?p=94#comment-118</guid>
		<description>You forgot to tell them to use mysql_escape_string in their queries.  Without that you&#039;re vulnerable to injection attacks.

(also, magic quotes are a horrible abomination of a security crutch)</description>
		<content:encoded><![CDATA[<p>You forgot to tell them to use mysql_escape_string in their queries.  Without that you&#8217;re vulnerable to injection attacks.</p>
<p>(also, magic quotes are a horrible abomination of a security crutch)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

