<?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"
	>
<channel>
	<title>Comments on: Pulling Drop-down values from a database using Javascript and PHP</title>
	<atom:link href="http://teamtutorials.com/web-development-tutorials/pulling-drop-down-values-from-a-database-using-javascript-and-php/feed" rel="self" type="application/rss+xml" />
	<link>http://teamtutorials.com/web-development-tutorials/pulling-drop-down-values-from-a-database-using-javascript-and-php</link>
	<description></description>
	<pubDate>Fri, 21 Nov 2008 09:49:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Edy</title>
		<link>http://teamtutorials.com/web-development-tutorials/pulling-drop-down-values-from-a-database-using-javascript-and-php#comment-2063</link>
		<dc:creator>Edy</dc:creator>
		<pubDate>Thu, 13 Nov 2008 01:33:43 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1539#comment-2063</guid>
		<description>it can handle only max 60 data table</description>
		<content:encoded><![CDATA[<p>it can handle only max 60 data table</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: frame</title>
		<link>http://teamtutorials.com/web-development-tutorials/pulling-drop-down-values-from-a-database-using-javascript-and-php#comment-1804</link>
		<dc:creator>frame</dc:creator>
		<pubDate>Thu, 23 Oct 2008 13:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1539#comment-1804</guid>
		<description>Great script...

Just wondering, is it possible to insert the chosen option into SQL.

Eg, the person choose, male as grp option, which open up boots and pants. 

In the person table, there is a id, grp_id and category _id...so it is possible to get the grp_id and category_id from javascript and post it into MYSQL.

Thanks!</description>
		<content:encoded><![CDATA[<p>Great script&#8230;</p>
<p>Just wondering, is it possible to insert the chosen option into SQL.</p>
<p>Eg, the person choose, male as grp option, which open up boots and pants. </p>
<p>In the person table, there is a id, grp_id and category _id&#8230;so it is possible to get the grp_id and category_id from javascript and post it into MYSQL.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rudy Greene</title>
		<link>http://teamtutorials.com/web-development-tutorials/pulling-drop-down-values-from-a-database-using-javascript-and-php#comment-1769</link>
		<dc:creator>Rudy Greene</dc:creator>
		<pubDate>Tue, 14 Oct 2008 14:43:12 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1539#comment-1769</guid>
		<description>Regarding my earlier comment. The script works great. I had filled the first table with my own categories so they didn't match with the rest of the script. My bad.</description>
		<content:encoded><![CDATA[<p>Regarding my earlier comment. The script works great. I had filled the first table with my own categories so they didn&#8217;t match with the rest of the script. My bad.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rudy Greene</title>
		<link>http://teamtutorials.com/web-development-tutorials/pulling-drop-down-values-from-a-database-using-javascript-and-php#comment-1768</link>
		<dc:creator>Rudy Greene</dc:creator>
		<pubDate>Tue, 14 Oct 2008 14:11:17 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1539#comment-1768</guid>
		<description>This is a terrific idea for a script, but it doesn't actually work. The first box will populate fine, but there is something wrong with the Javascript on the other two.</description>
		<content:encoded><![CDATA[<p>This is a terrific idea for a script, but it doesn&#8217;t actually work. The first box will populate fine, but there is something wrong with the Javascript on the other two.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://teamtutorials.com/web-development-tutorials/pulling-drop-down-values-from-a-database-using-javascript-and-php#comment-1726</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Sun, 28 Sep 2008 06:22:11 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1539#comment-1726</guid>
		<description>I am new to php and mysql and this has been very helpful in my learning, however i have not been able to get it working. My page ends up with the 3 drop down menus, but it just says main, category and sub category. I am not getting the data from the server. I have copied your tutorial exactly, except one set of modifications which was my db connection string. I am not sure if this is an error on your site, but when i went to test the connection.php file i got an error. I had to put an ' after servername_dbname and database name to get it to work. The code below was just copied from your site and is missing the '.

$servername='localhost';   
$dbusername='servername_dbname;   
$dbpassword='password';   
$dbname='database name;  

When i go to the update.php page, i get function fillCategory(){  and all the data from the server, but i cant get the program to function. 

Thanks,
Ben</description>
		<content:encoded><![CDATA[<p>I am new to php and mysql and this has been very helpful in my learning, however i have not been able to get it working. My page ends up with the 3 drop down menus, but it just says main, category and sub category. I am not getting the data from the server. I have copied your tutorial exactly, except one set of modifications which was my db connection string. I am not sure if this is an error on your site, but when i went to test the connection.php file i got an error. I had to put an &#8216; after servername_dbname and database name to get it to work. The code below was just copied from your site and is missing the &#8216;.</p>
<p>$servername=&#8217;localhost&#8217;;<br />
$dbusername=&#8217;servername_dbname;<br />
$dbpassword=&#8217;password&#8217;;<br />
$dbname=&#8217;database name;  </p>
<p>When i go to the update.php page, i get function fillCategory(){  and all the data from the server, but i cant get the program to function. </p>
<p>Thanks,<br />
Ben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zac</title>
		<link>http://teamtutorials.com/web-development-tutorials/pulling-drop-down-values-from-a-database-using-javascript-and-php#comment-1713</link>
		<dc:creator>Zac</dc:creator>
		<pubDate>Thu, 25 Sep 2008 02:33:28 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1539#comment-1713</guid>
		<description>Mike, thanks for taking the time to publish your code. Any update on a running example?

Cheers</description>
		<content:encoded><![CDATA[<p>Mike, thanks for taking the time to publish your code. Any update on a running example?</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ogunyankin Omotayo Rapheal</title>
		<link>http://teamtutorials.com/web-development-tutorials/pulling-drop-down-values-from-a-database-using-javascript-and-php#comment-1693</link>
		<dc:creator>Ogunyankin Omotayo Rapheal</dc:creator>
		<pubDate>Fri, 19 Sep 2008 09:24:45 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1539#comment-1693</guid>
		<description>this is a great job,you are quiet appreciated,please ive been finding it difficult to validate my work on HTML using javascript i will be so happy if you can just send me the most important steps to follow or codes in using javascript validate a form,also using javascript to create a function like solving some Mathematical problems, thanks  Tayo</description>
		<content:encoded><![CDATA[<p>this is a great job,you are quiet appreciated,please ive been finding it difficult to validate my work on HTML using javascript i will be so happy if you can just send me the most important steps to follow or codes in using javascript validate a form,also using javascript to create a function like solving some Mathematical problems, thanks  Tayo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: geocine</title>
		<link>http://teamtutorials.com/web-development-tutorials/pulling-drop-down-values-from-a-database-using-javascript-and-php#comment-1671</link>
		<dc:creator>geocine</dc:creator>
		<pubDate>Fri, 12 Sep 2008 18:20:47 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1539#comment-1671</guid>
		<description>oopps copied it straight from my edited code here it is..

echo “i = document.drop_list.Category.value;”;
echo “if( !(i &#62; \”{$nt4['category']}\” &#38;&#38; i &#60; \”{$nt4['category']}\”) ){”;</description>
		<content:encoded><![CDATA[<p>oopps copied it straight from my edited code here it is..</p>
<p>echo “i = document.drop_list.Category.value;”;<br />
echo “if( !(i &gt; \”{$nt4['category']}\” &amp;&amp; i &lt; \”{$nt4['category']}\”) ){”;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: geocine</title>
		<link>http://teamtutorials.com/web-development-tutorials/pulling-drop-down-values-from-a-database-using-javascript-and-php#comment-1670</link>
		<dc:creator>geocine</dc:creator>
		<pubDate>Fri, 12 Sep 2008 18:19:29 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1539#comment-1670</guid>
		<description>and this one to work out strings with apostrophe's

echo "i = document.addRecord.events.value;";
echo "if( !(i &#62; \"{$nt4['category']}\" &#38;&#38; i &#60; \"{$nt4['category']}\") ){";</description>
		<content:encoded><![CDATA[<p>and this one to work out strings with apostrophe&#8217;s</p>
<p>echo &#8220;i = document.addRecord.events.value;&#8221;;<br />
echo &#8220;if( !(i &gt; \&#8221;{$nt4['category']}\&#8221; &amp;&amp; i &lt; \&#8221;{$nt4['category']}\&#8221;) ){&#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: geocine</title>
		<link>http://teamtutorials.com/web-development-tutorials/pulling-drop-down-values-from-a-database-using-javascript-and-php#comment-1669</link>
		<dc:creator>geocine</dc:creator>
		<pubDate>Fri, 12 Sep 2008 17:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1539#comment-1669</guid>
		<description>this is just my opinion..

change this

if(document.drop_list.Category.value == '$nt4[category]')

to this

echo "if(document.drop_list.Category.value == \"{$nt4[category]}\")

since it might turn out like this

if(document.drop_list.Category.value == 'Geocine's')

that will generate javascript error..</description>
		<content:encoded><![CDATA[<p>this is just my opinion..</p>
<p>change this</p>
<p>if(document.drop_list.Category.value == &#8216;$nt4[category]&#8216;)</p>
<p>to this</p>
<p>echo &#8220;if(document.drop_list.Category.value == \&#8221;{$nt4[category]}\&#8221;)</p>
<p>since it might turn out like this</p>
<p>if(document.drop_list.Category.value == &#8216;Geocine&#8217;s&#8217;)</p>
<p>that will generate javascript error..</p>
]]></content:encoded>
	</item>
</channel>
</rss>
