 




<?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: PHP _GET problem on chained menu</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/php-_get-problem-on-chained-menu/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/php-_get-problem-on-chained-menu/</link>
	<description></description>
	<lastBuildDate>Thu, 23 May 2013 15:11:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: pforos</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/php-_get-problem-on-chained-menu/#comment-111047</link>
		<dc:creator>pforos</dc:creator>
		<pubDate>Thu, 13 Sep 2012 11:33:45 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/php-_get-problem-on-chained-menu/#comment-111047</guid>
		<description><![CDATA[Is it possible to use the onclick parameter of javascript to make the items appear and still have the sub-categories?]]></description>
		<content:encoded><![CDATA[<p>Is it possible to use the onclick parameter of javascript to make the items appear and still have the sub-categories?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pforos</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/php-_get-problem-on-chained-menu/#comment-110913</link>
		<dc:creator>pforos</dc:creator>
		<pubDate>Mon, 10 Sep 2012 19:44:42 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/php-_get-problem-on-chained-menu/#comment-110913</guid>
		<description><![CDATA[OK. So, here&#039;s the script I&#039;ve used on both menus:            	&lt;ul&gt;
					&lt;?php
						$flag = 0;
						if (isset($_GET[&#039;c_id&#039;]))
						{
							$c_id = $_GET[&#039;c_id&#039;];
							include(&quot;plus/db_con.php&quot;);
							$query = mysql_query (&quot;SELECT c_id, c_name FROM categories WHERE c_depend=&quot;.$c_id);
							while ($row = mysql_fetch_array($query))
							{
								echo &#039;&lt;li&gt;&lt;a href=&quot;select-interests.php?int_id=&#039;.$row[&#039;c_id&#039;].&#039;&quot;&gt;&#039;.$row[&#039;c_name&#039;].&#039;&lt;/a&gt;&lt;/li&gt;&#039;;
							}
							mysql_close();
						}
					?&gt;
                &lt;/ul&gt;And the second, where the sub-category is chosen and the coresponding items appear:            &lt;ul&gt;
                &lt;?php
					if (isset($_GET[&#039;int_id&#039;]))
					{
						include(&quot;plus/db_con.php&quot;);
						$query = mysql_query (&quot;SELECT int_name FROM interests WHERE c_id=&quot;.$_GET[&#039;int_id&#039;]);
						while ($row = mysql_fetch_array($query))
						{
							echo &#039;&lt;li&gt;&lt;input type=&quot;checkbox&quot;&gt;&lt;label for=&quot;interestName&quot;&gt;&#039;.$row[&#039;int_name&#039;].&#039;&lt;/label&gt;&lt;/li&gt;&#039;;
						}
						mysql_close();
					}
				?&gt;
            &lt;/ul&gt;It functions as it is supposed to. The problem is (because of the _GET) when I choose a sub-category, all sub-categories disappear.So any ideas what would make it work?]]></description>
		<content:encoded><![CDATA[<p>OK. So, here&#8217;s the script I&#8217;ve used on both menus:            	&lt;ul&gt;<br />
					&lt;?php<br />
						$flag = 0;<br />
						if (isset($_GET['c_id']))<br />
						{<br />
							$c_id = $_GET['c_id'];<br />
							include(&#8220;plus/db_con.php&#8221;);<br />
							$query = mysql_query (&#8220;SELECT c_id, c_name FROM categories WHERE c_depend=&#8221;.$c_id);<br />
							while ($row = mysql_fetch_array($query))<br />
							{<br />
								echo &#8216;&lt;li&gt;&lt;a href=&#8221;select-interests.php?int_id=&#8217;.$row['c_id'].&#8217;&#8221;&gt;&#8217;.$row['c_name'].&#8217;&lt;/a&gt;&lt;/li&gt;&#8217;;<br />
							}<br />
							mysql_close();<br />
						}<br />
					?&gt;<br />
                &lt;/ul&gt;And the second, where the sub-category is chosen and the coresponding items appear:            &lt;ul&gt;<br />
                &lt;?php<br />
					if (isset($_GET['int_id']))<br />
					{<br />
						include(&#8220;plus/db_con.php&#8221;);<br />
						$query = mysql_query (&#8220;SELECT int_name FROM interests WHERE c_id=&#8221;.$_GET['int_id']);<br />
						while ($row = mysql_fetch_array($query))<br />
						{<br />
							echo &#8216;&lt;li&gt;&lt;input type=&#8221;checkbox&#8221;&gt;&lt;label for=&#8221;interestName&#8221;&gt;&#8217;.$row['int_name'].&#8217;&lt;/label&gt;&lt;/li&gt;&#8217;;<br />
						}<br />
						mysql_close();<br />
					}<br />
				?&gt;<br />
            &lt;/ul&gt;It functions as it is supposed to. The problem is (because of the _GET) when I choose a sub-category, all sub-categories disappear.So any ideas what would make it work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/php-_get-problem-on-chained-menu/#comment-110907</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Mon, 10 Sep 2012 18:11:17 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/php-_get-problem-on-chained-menu/#comment-110907</guid>
		<description><![CDATA[Anyone wanting to help you will probably need to look at your code.]]></description>
		<content:encoded><![CDATA[<p>Anyone wanting to help you will probably need to look at your code.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/9 queries in 0.029 seconds using memcached
Object Caching 296/300 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-23 17:21:56 -->