<?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: Binary tree in MySQL for MLM</title>
	<atom:link href="http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/</link>
	<description>Get addicted to PHP</description>
	<lastBuildDate>Fri, 27 Jan 2012 02:59:59 +0530</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: KisKut</title>
		<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/comment-page-1/#comment-19778</link>
		<dc:creator>KisKut</dc:creator>
		<pubDate>Wed, 28 Dec 2011 11:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=897#comment-19778</guid>
		<description>Hello sir, I am trying to make MLM tree using the code you provided, but I am not getting the result.

Please can you provide me the a code in zip file with instruction to use it</description>
		<content:encoded><![CDATA[<p>Hello sir, I am trying to make MLM tree using the code you provided, but I am not getting the result.</p>
<p>Please can you provide me the a code in zip file with instruction to use it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aniket</title>
		<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/comment-page-1/#comment-18122</link>
		<dc:creator>aniket</dc:creator>
		<pubDate>Sun, 13 Nov 2011 11:52:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=897#comment-18122</guid>
		<description>hello sir,
i want to know how to find the leaf node of my right or left side</description>
		<content:encoded><![CDATA[<p>hello sir,<br />
i want to know how to find the leaf node of my right or left side</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manisha</title>
		<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/comment-page-1/#comment-17698</link>
		<dc:creator>Manisha</dc:creator>
		<pubDate>Tue, 04 Oct 2011 10:00:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=897#comment-17698</guid>
		<description>how can i decide the levels of a binary tree and how to count no. of nodes per level in php using database Mysql.</description>
		<content:encoded><![CDATA[<p>how can i decide the levels of a binary tree and how to count no. of nodes per level in php using database Mysql.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunitha</title>
		<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/comment-page-1/#comment-17544</link>
		<dc:creator>Sunitha</dc:creator>
		<pubDate>Tue, 20 Sep 2011 09:30:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=897#comment-17544</guid>
		<description>Thanks for posting the useful procedures.I would like to have a documentation for this post.Can you please post if it there.Can you please post php scripts to use getTreeFrom procedure in binary tree format.</description>
		<content:encoded><![CDATA[<p>Thanks for posting the useful procedures.I would like to have a documentation for this post.Can you please post if it there.Can you please post php scripts to use getTreeFrom procedure in binary tree format.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jijutm</title>
		<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/comment-page-1/#comment-16763</link>
		<dc:creator>jijutm</dc:creator>
		<pubDate>Tue, 19 Jul 2011 08:48:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=897#comment-16763</guid>
		<description>All the code is available on this site with this post. This is not a full fledged application, but an insight towards how easy we can do this using the MySQL procedures.</description>
		<content:encoded><![CDATA[<p>All the code is available on this site with this post. This is not a full fledged application, but an insight towards how easy we can do this using the MySQL procedures.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sankalp Srivastava</title>
		<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/comment-page-1/#comment-16163</link>
		<dc:creator>Sankalp Srivastava</dc:creator>
		<pubDate>Sat, 04 Jun 2011 12:13:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=897#comment-16163</guid>
		<description>Thanks sir for your post. It helped me a lot in my Project. I am a student want code to study. Please provide me the code.....</description>
		<content:encoded><![CDATA[<p>Thanks sir for your post. It helped me a lot in my Project. I am a student want code to study. Please provide me the code&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saif</title>
		<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/comment-page-1/#comment-15812</link>
		<dc:creator>saif</dc:creator>
		<pubDate>Fri, 06 May 2011 06:22:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=897#comment-15812</guid>
		<description>Thanks for the post, it is very helpful for me, I am creating a MLM System
I hope you will help me.
regards</description>
		<content:encoded><![CDATA[<p>Thanks for the post, it is very helpful for me, I am creating a MLM System<br />
I hope you will help me.<br />
regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sant</title>
		<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/comment-page-1/#comment-15406</link>
		<dc:creator>sant</dc:creator>
		<pubDate>Fri, 01 Apr 2011 09:23:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=897#comment-15406</guid>
		<description>thnx a lot.
saved my day !!!!</description>
		<content:encoded><![CDATA[<p>thnx a lot.<br />
saved my day !!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jijutm</title>
		<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/comment-page-1/#comment-15391</link>
		<dc:creator>jijutm</dc:creator>
		<pubDate>Tue, 29 Mar 2011 00:58:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=897#comment-15391</guid>
		<description>&lt;a href=&quot;#comment-15304&quot; rel=&quot;nofollow&quot;&gt;@saravananr&lt;/a&gt; 
This can be achieved by what I have given here, provided the structure is same. First get the identification of the left and right node, then call getTreeFrom twice passing each node as the parameter.</description>
		<content:encoded><![CDATA[<p><a href="#comment-15304" rel="nofollow">@saravananr</a><br />
This can be achieved by what I have given here, provided the structure is same. First get the identification of the left and right node, then call getTreeFrom twice passing each node as the parameter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saravananr</title>
		<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/comment-page-1/#comment-15304</link>
		<dc:creator>saravananr</dc:creator>
		<pubDate>Wed, 09 Mar 2011 10:04:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=897#comment-15304</guid>
		<description>Dear sir,

I finished watever u gave. but i need left tree retrieval for a particular node and right tree also...</description>
		<content:encoded><![CDATA[<p>Dear sir,</p>
<p>I finished watever u gave. but i need left tree retrieval for a particular node and right tree also&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saravananr</title>
		<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/comment-page-1/#comment-15303</link>
		<dc:creator>saravananr</dc:creator>
		<pubDate>Wed, 09 Mar 2011 09:58:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=897#comment-15303</guid>
		<description>Dear sir,

Can u help me for retrieving left tree and right tree seperately by using procedure...</description>
		<content:encoded><![CDATA[<p>Dear sir,</p>
<p>Can u help me for retrieving left tree and right tree seperately by using procedure&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ikhlaque Ahmed</title>
		<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/comment-page-1/#comment-14816</link>
		<dc:creator>Ikhlaque Ahmed</dc:creator>
		<pubDate>Mon, 25 Oct 2010 09:22:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=897#comment-14816</guid>
		<description>Hello sir,

I am trying to develope MLM site.But I can&#039;t able to make a database please. Please send me a sample databse with example on my Email -ID please manerikhlaque@gmail.com</description>
		<content:encoded><![CDATA[<p>Hello sir,</p>
<p>I am trying to develope MLM site.But I can&#8217;t able to make a database please. Please send me a sample databse with example on my Email -ID please <a href="mailto:manerikhlaque@gmail.com">manerikhlaque@gmail.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jijutm</title>
		<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/comment-page-1/#comment-14744</link>
		<dc:creator>jijutm</dc:creator>
		<pubDate>Tue, 07 Sep 2010 16:37:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=897#comment-14744</guid>
		<description>Sorry I left out the possibility of such a requirement at the time of generating the shown code, still it was as I said, an academic project and memories of past experiences. I will consider this when I have some free time, since now a days, I am too busy with &lt;a href=&quot;http://www.reserway.com&quot; rel=&quot;nofollow&quot;&gt;Reserway&lt;/a&gt; projects, a whole bunch of demanding, pestering travel agents and related portals, nothing to say about &lt;a href=&quot;http://www.xeproof.com&quot; rel=&quot;nofollow&quot;&gt;Xeproof&lt;/a&gt; with a whole new span of clients with varying demands.</description>
		<content:encoded><![CDATA[<p>Sorry I left out the possibility of such a requirement at the time of generating the shown code, still it was as I said, an academic project and memories of past experiences. I will consider this when I have some free time, since now a days, I am too busy with <a href="http://www.reserway.com" rel="nofollow">Reserway</a> projects, a whole bunch of demanding, pestering travel agents and related portals, nothing to say about <a href="http://www.xeproof.com" rel="nofollow">Xeproof</a> with a whole new span of clients with varying demands.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jijutm</title>
		<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/comment-page-1/#comment-14743</link>
		<dc:creator>jijutm</dc:creator>
		<pubDate>Tue, 07 Sep 2010 16:27:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=897#comment-14743</guid>
		<description>Binary or ternary, you cannot delete a node which is active. Unless you decide upon the priority rulez on who will go up and then you will have to rewrite the whole subtrees. which will make the operation a hell. In commercial chains, we normally coax the customer to accept the fact that such a dormant node ( unpaid or deactivated ) will be considered as a blackhole, through which the sponsoring company will get the benefits. But I am sure that does not solve your problem. Will need to sit and think on how this can be addressed.</description>
		<content:encoded><![CDATA[<p>Binary or ternary, you cannot delete a node which is active. Unless you decide upon the priority rulez on who will go up and then you will have to rewrite the whole subtrees. which will make the operation a hell. In commercial chains, we normally coax the customer to accept the fact that such a dormant node ( unpaid or deactivated ) will be considered as a blackhole, through which the sponsoring company will get the benefits. But I am sure that does not solve your problem. Will need to sit and think on how this can be addressed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vipul Khalasi</title>
		<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/comment-page-1/#comment-14738</link>
		<dc:creator>Vipul Khalasi</dc:creator>
		<pubDate>Wed, 01 Sep 2010 10:57:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=897#comment-14738</guid>
		<description>Hi Sir,

I used you concept for tree position. but i make one addition i have three child node [left,center,right], so all is set for me just one problem how to delete node so all position set properly.</description>
		<content:encoded><![CDATA[<p>Hi Sir,</p>
<p>I used you concept for tree position. but i make one addition i have three child node [left,center,right], so all is set for me just one problem how to delete node so all position set properly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rahul kaushik</title>
		<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/comment-page-1/#comment-14726</link>
		<dc:creator>rahul kaushik</dc:creator>
		<pubDate>Thu, 19 Aug 2010 16:13:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=897#comment-14726</guid>
		<description>hi all
i m unable to count left and right member 
my table looks like this
-------------------------------------------------------------
&#124; id &#124; parent id &#124; placement type &#124;
-------------------------------------------------------------
&#124; 1 &#124; 0 &#124; - &#124;
&#124; 2 &#124; 1 &#124; L &#124;
&#124; 3 &#124; 1 &#124; R &#124;
&#124; 4 &#124; 2 &#124; L &#124;
&#124; 5 &#124; 2 &#124; R &#124;
&#124; 6 &#124; 3 &#124; L &#124;
&#124; 7 &#124; 3 &#124; R &#124;
-------------------------------------------------------------

I Just want to count how much members are in left and right in 1st binary tree..

binary tree---

1
/ \
2 3
/ \ / \ 
4 5 6 7


plz help</description>
		<content:encoded><![CDATA[<p>hi all<br />
i m unable to count left and right member<br />
my table looks like this<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
| id | parent id | placement type |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
| 1 | 0 | &#8211; |<br />
| 2 | 1 | L |<br />
| 3 | 1 | R |<br />
| 4 | 2 | L |<br />
| 5 | 2 | R |<br />
| 6 | 3 | L |<br />
| 7 | 3 | R |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>I Just want to count how much members are in left and right in 1st binary tree..</p>
<p>binary tree&#8212;</p>
<p>1<br />
/ \<br />
2 3<br />
/ \ / \<br />
4 5 6 7</p>
<p>plz help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jijutm</title>
		<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/comment-page-1/#comment-13923</link>
		<dc:creator>jijutm</dc:creator>
		<pubDate>Wed, 10 Mar 2010 18:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=897#comment-13923</guid>
		<description>I would agree that this seems to fall in the same concept. But was written to assist in academic interests to help understand Binary Tree which is used heavily in Multilevel Marketing systems</description>
		<content:encoded><![CDATA[<p>I would agree that this seems to fall in the same concept. But was written to assist in academic interests to help understand Binary Tree which is used heavily in Multilevel Marketing systems</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viktor</title>
		<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/comment-page-1/#comment-13878</link>
		<dc:creator>Viktor</dc:creator>
		<pubDate>Thu, 04 Mar 2010 17:38:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=897#comment-13878</guid>
		<description>nice share ! is this an application of nested set concept?</description>
		<content:encoded><![CDATA[<p>nice share ! is this an application of nested set concept?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jijutm</title>
		<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/comment-page-1/#comment-13575</link>
		<dc:creator>jijutm</dc:creator>
		<pubDate>Fri, 13 Nov 2009 01:52:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=897#comment-13575</guid>
		<description>I am commercially available, send your request to projects at saturn.in visit &lt;a href=&quot;http://www.saturn.in&quot; rel=&quot;nofollow&quot;&gt;Saturn SPL&lt;/a&gt; corporate site</description>
		<content:encoded><![CDATA[<p>I am commercially available, send your request to projects at saturn.in visit <a href="http://www.saturn.in" rel="nofollow">Saturn SPL</a> corporate site</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://www.php-trivandrum.org/code-snippets/binary-tree-in-mysql-for-mlm/comment-page-1/#comment-13573</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Wed, 11 Nov 2009 05:42:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-trivandrum.org/?p=897#comment-13573</guid>
		<description>I&#039;m a student and an amateur web designer and needs to create a binary mlm system using php mysql. i really need it badly to study. Can you send me a sample 1 with database configuration and a simple add-user-to-tree system?

here&#039;s my email icodeme@gmail.com thank you so much!</description>
		<content:encoded><![CDATA[<p>I&#8217;m a student and an amateur web designer and needs to create a binary mlm system using php mysql. i really need it badly to study. Can you send me a sample 1 with database configuration and a simple add-user-to-tree system?</p>
<p>here&#8217;s my email <a href="mailto:icodeme@gmail.com">icodeme@gmail.com</a> thank you so much!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

