<?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: 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>
	<lastBuildDate>Sat, 07 Nov 2009 18:48:46 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Stuart C</title>
		<link>http://teamtutorials.com/web-development-tutorials/pulling-drop-down-values-from-a-database-using-javascript-and-php/comment-page-1#comment-3430</link>
		<dc:creator>Stuart C</dc:creator>
		<pubDate>Sat, 03 Oct 2009 09:29:36 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1539#comment-3430</guid>
		<description>sorry code got taken out. its the selected values in the option tag.

Cheers</description>
		<content:encoded><![CDATA[<p>sorry code got taken out. its the selected values in the option tag.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart C</title>
		<link>http://teamtutorials.com/web-development-tutorials/pulling-drop-down-values-from-a-database-using-javascript-and-php/comment-page-1#comment-3429</link>
		<dc:creator>Stuart C</dc:creator>
		<pubDate>Sat, 03 Oct 2009 09:28:42 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1539#comment-3429</guid>
		<description>Hi Mike,

A question that has been wracking my brains is how to get the  working?

I need to show the dropdowns on the homepage and then the search page, so i put the variables in the url and take them to the search page and use them to show the dropdowns with the selected values.

Any ideas?

Cheers

Stuart</description>
		<content:encoded><![CDATA[<p>Hi Mike,</p>
<p>A question that has been wracking my brains is how to get the  working?</p>
<p>I need to show the dropdowns on the homepage and then the search page, so i put the variables in the url and take them to the search page and use them to show the dropdowns with the selected values.</p>
<p>Any ideas?</p>
<p>Cheers</p>
<p>Stuart</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OneCrispy</title>
		<link>http://teamtutorials.com/web-development-tutorials/pulling-drop-down-values-from-a-database-using-javascript-and-php/comment-page-1#comment-2986</link>
		<dc:creator>OneCrispy</dc:creator>
		<pubDate>Thu, 18 Jun 2009 18:48:15 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1539#comment-2986</guid>
		<description>Dear John, 

Regarding my previous post, I have now managed to get them to work but I am having problems with the Javascript. It does not seem to populate the feilds. 

Thanks Again</description>
		<content:encoded><![CDATA[<p>Dear John, </p>
<p>Regarding my previous post, I have now managed to get them to work but I am having problems with the Javascript. It does not seem to populate the feilds. </p>
<p>Thanks Again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OneCrispy</title>
		<link>http://teamtutorials.com/web-development-tutorials/pulling-drop-down-values-from-a-database-using-javascript-and-php/comment-page-1#comment-2979</link>
		<dc:creator>OneCrispy</dc:creator>
		<pubDate>Wed, 17 Jun 2009 19:11:58 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1539#comment-2979</guid>
		<description>Dear John, 

This does not seem to work either. Any other suggestions? 

Thanks</description>
		<content:encoded><![CDATA[<p>Dear John, </p>
<p>This does not seem to work either. Any other suggestions? </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Ward</title>
		<link>http://teamtutorials.com/web-development-tutorials/pulling-drop-down-values-from-a-database-using-javascript-and-php/comment-page-1#comment-2968</link>
		<dc:creator>John Ward</dc:creator>
		<pubDate>Tue, 16 Jun 2009 00:58:26 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1539#comment-2968</guid>
		<description>Check the line before these errors for a missing semicolon ;</description>
		<content:encoded><![CDATA[<p>Check the line before these errors for a missing semicolon ;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OneCrispy</title>
		<link>http://teamtutorials.com/web-development-tutorials/pulling-drop-down-values-from-a-database-using-javascript-and-php/comment-page-1#comment-2967</link>
		<dc:creator>OneCrispy</dc:creator>
		<pubDate>Mon, 15 Jun 2009 15:21:08 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1539#comment-2967</guid>
		<description>Dear Mike, 

You can veiw both PHP Errors on my website at: 

http://amateur-gardeners.co.uk/update.php 
http://amateur-gardeners.co.uk/sucess.php  

Has anyone else found that they have recived any errors? 
Is there anything wrong with the code? 

Thanks for your help</description>
		<content:encoded><![CDATA[<p>Dear Mike, </p>
<p>You can veiw both PHP Errors on my website at: </p>
<p><a href="http://amateur-gardeners.co.uk/update.php" rel="nofollow">http://amateur-gardeners.co.uk/update.php</a><br />
<a href="http://amateur-gardeners.co.uk/sucess.php" rel="nofollow">http://amateur-gardeners.co.uk/sucess.php</a>  </p>
<p>Has anyone else found that they have recived any errors?<br />
Is there anything wrong with the code? </p>
<p>Thanks for your help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Maguire</title>
		<link>http://teamtutorials.com/web-development-tutorials/pulling-drop-down-values-from-a-database-using-javascript-and-php/comment-page-1#comment-2962</link>
		<dc:creator>Mike Maguire</dc:creator>
		<pubDate>Sun, 14 Jun 2009 19:43:50 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1539#comment-2962</guid>
		<description>What error codes are you getting? Do you have this deployed somewhere so I can see all the errors you are getting?</description>
		<content:encoded><![CDATA[<p>What error codes are you getting? Do you have this deployed somewhere so I can see all the errors you are getting?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OneCrispy</title>
		<link>http://teamtutorials.com/web-development-tutorials/pulling-drop-down-values-from-a-database-using-javascript-and-php/comment-page-1#comment-2958</link>
		<dc:creator>OneCrispy</dc:creator>
		<pubDate>Sun, 14 Jun 2009 08:43:57 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1539#comment-2958</guid>
		<description>My previous post for sucess.php did not contain the start of the code so here it is: 
=0;i--) 

Sorry about the mess of the comments I have caused but hopefully you will be able to understand them! 
Thanks</description>
		<content:encoded><![CDATA[<p>My previous post for sucess.php did not contain the start of the code so here it is:<br />
=0;i&#8211;) </p>
<p>Sorry about the mess of the comments I have caused but hopefully you will be able to understand them!<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OneCrispy</title>
		<link>http://teamtutorials.com/web-development-tutorials/pulling-drop-down-values-from-a-database-using-javascript-and-php/comment-page-1#comment-2957</link>
		<dc:creator>OneCrispy</dc:creator>
		<pubDate>Sun, 14 Jun 2009 08:41:11 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1539#comment-2957</guid>
		<description>Sucess.php: 
=0;i--)
{
selectbox.remove(i);
}
}

function addOption(selectbox, value, text )
{
var optn = document.createElement(&quot;OPTION&quot;);
optn.text = text;
optn.value = value;

selectbox.options.add(optn);
}
[

?&gt;</description>
		<content:encoded><![CDATA[<p>Sucess.php:<br />
=0;i&#8211;)<br />
{<br />
selectbox.remove(i);<br />
}<br />
}</p>
<p>function addOption(selectbox, value, text )<br />
{<br />
var optn = document.createElement(&#8221;OPTION&#8221;);<br />
optn.text = text;<br />
optn.value = value;</p>
<p>selectbox.options.add(optn);<br />
}<br />
[</p>
<p>?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OneCrispy</title>
		<link>http://teamtutorials.com/web-development-tutorials/pulling-drop-down-values-from-a-database-using-javascript-and-php/comment-page-1#comment-2956</link>
		<dc:creator>OneCrispy</dc:creator>
		<pubDate>Sun, 14 Jun 2009 08:40:16 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1539#comment-2956</guid>
		<description>}
echo &quot;}&quot;;
}
function SelectSubCat(){

removeAllOptions(document.drop_list.SubCat);
addOption(document.drop_list.SubCat, &quot;&quot;, &quot;SubCat&quot;, &quot;&quot;);


$q4=mysql_query(&quot;select distinct(`category`) from subcategory&quot;);

while($nt4=mysql_fetch_array($q4)){

echo &quot;if(document.drop_list.Category.value == &#039;$nt4[category]&#039;){&quot;;
$q5=mysql_query(&quot;select subcategory from subcategory where `category`=&#039;$nt4[category]&#039;&quot;);
while($nt5=mysql_fetch_array($q5)){
echo &quot;addOption(document.drop_list.SubCat,&#039;$nt5[subcategory]&#039;, &#039;$nt5[subcategory]&#039;);&quot;;

}
echo &quot;}&quot;;
}

?&gt;</description>
		<content:encoded><![CDATA[<p>}<br />
echo &#8220;}&#8221;;<br />
}<br />
function SelectSubCat(){</p>
<p>removeAllOptions(document.drop_list.SubCat);<br />
addOption(document.drop_list.SubCat, &#8220;&#8221;, &#8220;SubCat&#8221;, &#8220;&#8221;);</p>
<p>$q4=mysql_query(&#8221;select distinct(`category`) from subcategory&#8221;);</p>
<p>while($nt4=mysql_fetch_array($q4)){</p>
<p>echo &#8220;if(document.drop_list.Category.value == &#8216;$nt4[category]&#8216;){&#8221;;<br />
$q5=mysql_query(&#8221;select subcategory from subcategory where `category`=&#8217;$nt4[category]&#8216;&#8221;);<br />
while($nt5=mysql_fetch_array($q5)){<br />
echo &#8220;addOption(document.drop_list.SubCat,&#8217;$nt5[subcategory]&#8216;, &#8216;$nt5[subcategory]&#8216;);&#8221;;</p>
<p>}<br />
echo &#8220;}&#8221;;<br />
}</p>
<p>?&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
