<?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: Build dropdown from Mysql SET or ENUM fields</title>
	<atom:link href="http://www.imranulhoque.com/mysql/build-dropdown-from-mysql-set-or-enum-fields/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.imranulhoque.com/mysql/build-dropdown-from-mysql-set-or-enum-fields/</link>
	<description></description>
	<lastBuildDate>Mon, 26 Jul 2010 16:02:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: qwerty</title>
		<link>http://www.imranulhoque.com/mysql/build-dropdown-from-mysql-set-or-enum-fields/comment-page-1/#comment-5551</link>
		<dc:creator>qwerty</dc:creator>
		<pubDate>Mon, 26 Jul 2010 16:02:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.imranulhoque.com/?p=131#comment-5551</guid>
		<description>&lt;blockquote cite=&quot;#commentbody-3003&quot;&gt;
&lt;strong&gt;&lt;a href=&quot;#comment-3003&quot; rel=&quot;nofollow&quot;&gt;Junnjun M.&lt;/a&gt; :&lt;/strong&gt;
          Hi there…How can I remove the qoutes (”) that wrap values??Thanks
         &lt;/blockquote&gt;

Add : $fieldSplit = str_replace (&#039;\&#039;&#039;, &#039;&#039;, $fieldSplit);
before return line</description>
		<content:encoded><![CDATA[<blockquote cite="#commentbody-3003"><p>
<strong><a href="#comment-3003" rel="nofollow">Junnjun M.</a> :</strong><br />
          Hi there…How can I remove the qoutes (”) that wrap values??Thanks
         </p></blockquote>
<p>Add : $fieldSplit = str_replace (&#8216;\&#8221;, &#8221;, $fieldSplit);<br />
before return line</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran</title>
		<link>http://www.imranulhoque.com/mysql/build-dropdown-from-mysql-set-or-enum-fields/comment-page-1/#comment-3009</link>
		<dc:creator>Imran</dc:creator>
		<pubDate>Fri, 29 Jan 2010 14:41:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.imranulhoque.com/?p=131#comment-3009</guid>
		<description>Handling quotes is always a bit tricky. You need to convert quotes to html entities, which means use the code like following:

&lt;pre&gt;$enumFields = getEnumFieldValues(&#039;agree&#039;, &#039;test&#039;);
echo &#039;&lt;select name=&quot;agree&quot;&gt;&#039;;
foreach($enumFields as $value){
echo &#039;&lt;option value=&quot;&#039; . htmlentities($value) . &#039;&quot;&gt;&#039; . $value . &#039;&lt;/option&gt;&#039;;
}
echo &#039;&lt;/select&gt;&#039;;
&lt;/pre&gt;

When you are using the submitted value in your php script, get the value like this:

$value = html_entity_decode($value);

Hope this helps.</description>
		<content:encoded><![CDATA[<p>Handling quotes is always a bit tricky. You need to convert quotes to html entities, which means use the code like following:</p>
<pre>$enumFields = getEnumFieldValues('agree', 'test');
echo '&lt;select name="agree"&gt;';
foreach($enumFields as $value){
echo '&lt;option value="' . htmlentities($value) . '"&gt;' . $value . '&lt;/option&gt;';
}
echo '&lt;/select&gt;';
</pre>
<p>When you are using the submitted value in your php script, get the value like this:</p>
<p>$value = html_entity_decode($value);</p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Junnjun M.</title>
		<link>http://www.imranulhoque.com/mysql/build-dropdown-from-mysql-set-or-enum-fields/comment-page-1/#comment-3003</link>
		<dc:creator>Junnjun M.</dc:creator>
		<pubDate>Fri, 29 Jan 2010 07:17:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.imranulhoque.com/?p=131#comment-3003</guid>
		<description>Hi there...How can I remove the qoutes (&#039;&#039;) that wrap values??Thanks</description>
		<content:encoded><![CDATA[<p>Hi there&#8230;How can I remove the qoutes (&#8221;) that wrap values??Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran</title>
		<link>http://www.imranulhoque.com/mysql/build-dropdown-from-mysql-set-or-enum-fields/comment-page-1/#comment-2765</link>
		<dc:creator>Imran</dc:creator>
		<pubDate>Thu, 14 Jan 2010 15:13:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.imranulhoque.com/?p=131#comment-2765</guid>
		<description>Good to know that :-)</description>
		<content:encoded><![CDATA[<p>Good to know that <img src='http://www.imranulhoque.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benjamin</title>
		<link>http://www.imranulhoque.com/mysql/build-dropdown-from-mysql-set-or-enum-fields/comment-page-1/#comment-2760</link>
		<dc:creator>Benjamin</dc:creator>
		<pubDate>Thu, 14 Jan 2010 12:11:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.imranulhoque.com/?p=131#comment-2760</guid>
		<description>Super, works a treat, thanks!</description>
		<content:encoded><![CDATA[<p>Super, works a treat, thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
