<?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: Escape special character in mysql query</title>
	<atom:link href="http://phpcollection.com/escape-special-character-in-mysql-query/feed/" rel="self" type="application/rss+xml" />
	<link>http://phpcollection.com/escape-special-character-in-mysql-query/</link>
	<description>PHP Tutorials collection</description>
	<lastBuildDate>Sun, 16 Oct 2011 16:14:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Learn PHP</title>
		<link>http://phpcollection.com/escape-special-character-in-mysql-query/comment-page-1/#comment-509</link>
		<dc:creator>Learn PHP</dc:creator>
		<pubDate>Mon, 01 Aug 2011 13:39:22 +0000</pubDate>
		<guid isPermaLink="false">http://phpcollection.com/escape-special-character-in-mysql-query.html#comment-509</guid>
		<description>You could try appending the &amp; after the query is called. Addionally, the stripslashes() and mysql_escape_string() automate the slashing thing for php. Else, a better method str_replace() should work for you.
Hope that helps.</description>
		<content:encoded><![CDATA[<p>You could try appending the &amp; after the query is called. Addionally, the stripslashes() and mysql_escape_string() automate the slashing thing for php. Else, a better method str_replace() should work for you.<br />
Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heinz Stapff</title>
		<link>http://phpcollection.com/escape-special-character-in-mysql-query/comment-page-1/#comment-488</link>
		<dc:creator>Heinz Stapff</dc:creator>
		<pubDate>Mon, 25 Jul 2011 22:02:36 +0000</pubDate>
		<guid isPermaLink="false">http://phpcollection.com/escape-special-character-in-mysql-query.html#comment-488</guid>
		<description>I&#039;m trying to escape an &#039;&amp;&#039; or amperstand that I&#039;m putting in an Enum field like this

field/column: Color
Enum: &#039;Silver&#039;,&#039;Silver &amp; Gold&#039;,&#039;Silver &amp; Stones&#039;

to be used like this
echo &quot;&quot; . $row[&#039;Color&#039;,&#039;0&#039;] . &quot;&quot;;
echo &quot;&quot; . $row[&#039;Color&#039;,&#039;1&#039;] . &quot;&quot;;
echo &quot;&quot; . $row[&#039;Color&#039;,&#039;2&#039;] . &quot;&quot;;

As the data must come from the Enum field entered in phpMyAdmin, isn&#039;t there an escape that can be used in the Enum input like?

&#039;Silver&#039;,&#039;Silver %s&amp; Stones&#039;,&#039;Siler %s&amp; Gold&#039;

If so, why is there not a list of the escape sequances available?</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to escape an &#8216;&amp;&#8217; or amperstand that I&#8217;m putting in an Enum field like this</p>
<p>field/column: Color<br />
Enum: &#8216;Silver&#8217;,'Silver &amp; Gold&#8217;,'Silver &amp; Stones&#8217;</p>
<p>to be used like this<br />
echo &#8220;&#8221; . $row['Color','0'] . &#8220;&#8221;;<br />
echo &#8220;&#8221; . $row['Color','1'] . &#8220;&#8221;;<br />
echo &#8220;&#8221; . $row['Color','2'] . &#8220;&#8221;;</p>
<p>As the data must come from the Enum field entered in phpMyAdmin, isn&#8217;t there an escape that can be used in the Enum input like?</p>
<p>&#8216;Silver&#8217;,'Silver %s&amp; Stones&#8217;,'Siler %s&amp; Gold&#8217;</p>
<p>If so, why is there not a list of the escape sequances available?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

