<?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: Displaying a Breadcrumb Navigation for Multiple Sub Categories via PHP</title>
	<atom:link href="http://www.web-design-talk.co.uk/188/displaying-a-breadcrumb-navigation-for-multiple-sub-categories-via-php-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.web-design-talk.co.uk/188/displaying-a-breadcrumb-navigation-for-multiple-sub-categories-via-php-2/</link>
	<description>Web Design &#38; Development Blog</description>
	<lastBuildDate>Sat, 04 Feb 2012 19:06:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Rob</title>
		<link>http://www.web-design-talk.co.uk/188/displaying-a-breadcrumb-navigation-for-multiple-sub-categories-via-php-2/comment-page-1/#comment-11149</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Sat, 03 Sep 2011 18:25:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-design-talk.co.uk/?p=188#comment-11149</guid>
		<description>&lt;blockquote&gt;
&lt;a href=&quot;#comment-10895&quot; rel=&quot;nofollow&quot;&gt;
&lt;strong&gt;&lt;em&gt;Erick:&lt;/em&gt;&lt;/strong&gt;
&lt;/a&gt;
 &lt;p&gt;Hi, great tutorial. I did a little tweak, and it’s seem didn’t work.&lt;/p&gt;
&lt;p&gt;Here is the code.&lt;/p&gt;
&lt;p&gt;function getCategoryTreeIDs($qs_type_id) {&lt;br&gt;
		$crumbsql = “SELECT parent_id FROM lists WHERE id=$qs_type_id”;&lt;br&gt;
		$crumbresult = tep_db_query($crumbsql);&lt;br&gt;
		$crumbrow = tep_db_fetch_array($crumbresult);&lt;br&gt;
		$path = array();&lt;br&gt;
		if (!$crumbrow[&#039;parent_id&#039;] == ”) {&lt;br&gt;
			$path[] = $crumbrow[&#039;parent_id&#039;];&lt;br&gt;
			$path = array_merge($this-&gt;getCategoryTreeIDs($crumbrow[&#039;parent_id&#039;]), $path);&lt;br&gt;
		}&lt;br&gt;
		return $path;&lt;br&gt;
}&lt;br&gt;
function showCatBreadCrumb($qs_type_id) {&lt;br&gt;
		$array = $this-&gt;getCategoryTreeIDs($qs_type_id);&lt;br&gt;
		$numItems = count($array);&lt;br&gt;
		for ($i = 0; $igetNameLink($array[$i]) . ‘ » ‘;&lt;br&gt;
		}&lt;br&gt;
}&lt;/p&gt;
&lt;p&gt;Can you tell me, what’s wrong with the code. Because when i clicked on categories, the breadcrumb didn’t show.&lt;/p&gt;
&lt;p&gt;Many thanks.&lt;/p&gt;
&lt;/blockquote&gt;

Just from a quick glance, your loop in your showcatbtreadcrumb function looks off. $igetNameLink should be a condition E.g. $i&lt;10 ....</description>
		<content:encoded><![CDATA[<blockquote><p>
<a href="#comment-10895" rel="nofollow"><br />
<strong><em>Erick:</em></strong><br />
</a></p>
<p>Hi, great tutorial. I did a little tweak, and it’s seem didn’t work.</p>
<p>Here is the code.</p>
<p>function getCategoryTreeIDs($qs_type_id) {<br />
		$crumbsql = “SELECT parent_id FROM lists WHERE id=$qs_type_id”;<br />
		$crumbresult = tep_db_query($crumbsql);<br />
		$crumbrow = tep_db_fetch_array($crumbresult);<br />
		$path = array();<br />
		if (!$crumbrow['parent_id'] == ”) {<br />
			$path[] = $crumbrow['parent_id'];<br />
			$path = array_merge($this-&gt;getCategoryTreeIDs($crumbrow['parent_id']), $path);<br />
		}<br />
		return $path;<br />
}<br />
function showCatBreadCrumb($qs_type_id) {<br />
		$array = $this-&gt;getCategoryTreeIDs($qs_type_id);<br />
		$numItems = count($array);<br />
		for ($i = 0; $igetNameLink($array[$i]) . ‘ » ‘;<br />
		}<br />
}</p>
<p>Can you tell me, what’s wrong with the code. Because when i clicked on categories, the breadcrumb didn’t show.</p>
<p>Many thanks.</p>
</blockquote>
<p>Just from a quick glance, your loop in your showcatbtreadcrumb function looks off. $igetNameLink should be a condition E.g. $i&lt;10 &#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erick</title>
		<link>http://www.web-design-talk.co.uk/188/displaying-a-breadcrumb-navigation-for-multiple-sub-categories-via-php-2/comment-page-1/#comment-10895</link>
		<dc:creator>Erick</dc:creator>
		<pubDate>Wed, 24 Aug 2011 04:20:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-design-talk.co.uk/?p=188#comment-10895</guid>
		<description>Hi, great tutorial. I did a little tweak, and it&#039;s seem didn&#039;t work.

Here is the code.

function getCategoryTreeIDs($qs_type_id) {
		$crumbsql = &quot;SELECT parent_id FROM lists WHERE id=$qs_type_id&quot;;
		$crumbresult = tep_db_query($crumbsql);
		$crumbrow = tep_db_fetch_array($crumbresult);
		$path = array();
		if (!$crumbrow[&#039;parent_id&#039;] == &#039;&#039;) {
			$path[] = $crumbrow[&#039;parent_id&#039;];
			$path = array_merge($this-&gt;getCategoryTreeIDs($crumbrow[&#039;parent_id&#039;]), $path);
		}
		return $path;
}
function showCatBreadCrumb($qs_type_id) {
		$array = $this-&gt;getCategoryTreeIDs($qs_type_id);
		$numItems = count($array);
		for ($i = 0; $igetNameLink($array[$i]) . &#039; &#187; &#039;;
		}
}

Can you tell me, what&#039;s wrong with the code. Because when i clicked on categories, the breadcrumb didn&#039;t show.

Many thanks.</description>
		<content:encoded><![CDATA[<p>Hi, great tutorial. I did a little tweak, and it&#8217;s seem didn&#8217;t work.</p>
<p>Here is the code.</p>
<p>function getCategoryTreeIDs($qs_type_id) {<br />
		$crumbsql = &#8220;SELECT parent_id FROM lists WHERE id=$qs_type_id&#8221;;<br />
		$crumbresult = tep_db_query($crumbsql);<br />
		$crumbrow = tep_db_fetch_array($crumbresult);<br />
		$path = array();<br />
		if (!$crumbrow['parent_id'] == &#8221;) {<br />
			$path[] = $crumbrow['parent_id'];<br />
			$path = array_merge($this-&gt;getCategoryTreeIDs($crumbrow['parent_id']), $path);<br />
		}<br />
		return $path;<br />
}<br />
function showCatBreadCrumb($qs_type_id) {<br />
		$array = $this-&gt;getCategoryTreeIDs($qs_type_id);<br />
		$numItems = count($array);<br />
		for ($i = 0; $igetNameLink($array[$i]) . &#8216; &raquo; &#8216;;<br />
		}<br />
}</p>
<p>Can you tell me, what&#8217;s wrong with the code. Because when i clicked on categories, the breadcrumb didn&#8217;t show.</p>
<p>Many thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://www.web-design-talk.co.uk/188/displaying-a-breadcrumb-navigation-for-multiple-sub-categories-via-php-2/comment-page-1/#comment-9075</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Sat, 28 May 2011 09:31:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-design-talk.co.uk/?p=188#comment-9075</guid>
		<description>&lt;blockquote&gt;
&lt;a href=&quot;#comment-9067&quot; rel=&quot;nofollow&quot;&gt;
&lt;strong&gt;&lt;em&gt;baris:&lt;/em&gt;&lt;/strong&gt;
&lt;/a&gt;
 &lt;p&gt;how can i use this on a php page? when i do showCatBreadCrumb($cat); i get this error: Fatal error: Using $this when not in object context in C:\AppServ\www\s\inc\position.php on line 73&lt;/p&gt;
&lt;/blockquote&gt;



That&#039;s because the mthods are intended to be used as part of a class and not as standalone functions - as $this-&gt; implies. I&#039;d highly reocmmend you go have a read of some basic php tutorials at w3schools.com.</description>
		<content:encoded><![CDATA[<blockquote><p>
<a href="#comment-9067" rel="nofollow"><br />
<strong><em>baris:</em></strong><br />
</a></p>
<p>how can i use this on a php page? when i do showCatBreadCrumb($cat); i get this error: Fatal error: Using $this when not in object context in C:\AppServ\www\s\inc\position.php on line 73</p>
</blockquote>
<p>That&#8217;s because the mthods are intended to be used as part of a class and not as standalone functions &#8211; as $this-> implies. I&#8217;d highly reocmmend you go have a read of some basic php tutorials at w3schools.com.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: baris</title>
		<link>http://www.web-design-talk.co.uk/188/displaying-a-breadcrumb-navigation-for-multiple-sub-categories-via-php-2/comment-page-1/#comment-9067</link>
		<dc:creator>baris</dc:creator>
		<pubDate>Fri, 27 May 2011 20:08:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-design-talk.co.uk/?p=188#comment-9067</guid>
		<description>how can i use this on a php page? when i do showCatBreadCrumb($cat); i get this error: Fatal error: Using $this when not in object context in C:\AppServ\www\s\inc\position.php on line 73</description>
		<content:encoded><![CDATA[<p>how can i use this on a php page? when i do showCatBreadCrumb($cat); i get this error: Fatal error: Using $this when not in object context in C:\AppServ\www\s\inc\position.php on line 73</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carolina</title>
		<link>http://www.web-design-talk.co.uk/188/displaying-a-breadcrumb-navigation-for-multiple-sub-categories-via-php-2/comment-page-1/#comment-8309</link>
		<dc:creator>Carolina</dc:creator>
		<pubDate>Wed, 13 Apr 2011 15:52:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.web-design-talk.co.uk/?p=188#comment-8309</guid>
		<description>Thanks it works I only have to change a few thinks but it&#039;s great!</description>
		<content:encoded><![CDATA[<p>Thanks it works I only have to change a few thinks but it&#8217;s great!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

