Unix/Linux Go Back    

Web Programming Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, HTML, SEO, and other Web APIs and topics.

Problem in printing binary tree using php and mysql

Web Programming

Thread Tools Search this Thread Display Modes
Old Unix and Linux 07-25-2017   -   Original Discussion by Deepak Tiwari
Deepak Tiwari Deepak Tiwari is offline
Registered User
Join Date: Jul 2017
Last Activity: 29 July 2017, 12:51 AM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Problem in printing binary tree using php and mysql

Database Structure

Root Table

ID Root_ Node Level
1 A 0
2 B 1
3 C 1

Child Table

ID Left_Node Right_Node Root_Node Root_ID
1 B C A 1

I need to print up to 20 level.
Sponsored Links
Old Unix and Linux 07-25-2017   -   Original Discussion by Deepak Tiwari
Corona688 Corona688 is online now Forum Staff  
Mead Rotor
Join Date: Aug 2005
Last Activity: 20 November 2017, 10:39 AM EST
Location: Saskatchewan
Posts: 22,514
Thanks: 1,153
Thanked 4,273 Times in 3,946 Posts
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Binary search tree questions. Please help =) Jill Ceke Programming 1 12-20-2013 03:33 PM
Binary Search Tree Search problem meredith1990 Programming 1 02-27-2012 11:23 AM
Binary Tree sepoto Programming 5 04-07-2011 10:24 AM
Binary Tree Creation Using fork() learneros UNIX for Dummies Questions & Answers 1 11-02-2007 03:58 PM
Create a binary tree macvijay1985 Shell Programming and Scripting 2 10-18-2007 04:15 PM

All times are GMT -4. The time now is 11:40 AM.