Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: plz help me out to create binary tree

  1. #1
    kuki is offline Newbie
    Join Date
    Mar 2009
    Posts
    5
    Rep Power
    0

    plz help me out to create binary tree

    plz help me out to create binary tree that fetches data from database in php code
    plz anyone give me logic

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,478
    Blog Entries
    75
    Rep Power
    143

    Re: plz help me out to create binary tree

    Moved to the correct forum.

    You will probably need to provide a few more details, since you are talking about a non-trivial activity.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  4. #3
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Re: plz help me out to create binary tree

    Quote Originally Posted by WingedPanther View Post
    Moved to the correct forum.

    You will probably need to provide a few more details, since you are talking about a non-trivial activity.
    How is your binary/avl tree tutorial going?

  5. #4
    kuki is offline Newbie
    Join Date
    Mar 2009
    Posts
    5
    Rep Power
    0

    Re: plz help me out to create binary tree

    i want to create the binary tree that fetches data from database
    i'm working on multilevel marketing project.
    i want to create binary tree that shows sponser and admin

  6. #5
    Join Date
    Jul 2006
    Posts
    16,478
    Blog Entries
    75
    Rep Power
    143

    Re: plz help me out to create binary tree

    Quote Originally Posted by John View Post
    How is your binary/avl tree tutorial going?
    I might finish that today.

    Quote Originally Posted by kuki View Post
    i want to create the binary tree that fetches data from database
    i'm working on multilevel marketing project.
    i want to create binary tree that shows sponser and admin
    A binary tree is a data storage object. It doesn't "fetch data", it "stores data". it sounds like you heard a buzz word and don't know what it is or when it is helpful. I would just use standard SQL and let the database handle storing your data. Also, a binary tree doesn't "show data". You need something else for that, like a table.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  7. #6
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Re: plz help me out to create binary tree

    I believe most databases implement a b-tree structure.

  8. #7
    kuki is offline Newbie
    Join Date
    Mar 2009
    Posts
    5
    Rep Power
    0

    Re: plz help me out to create binary tree

    actualy i'm working on multilevel marketing project. for that there are one root/admin and othes are affilates .so for that admin doesnt have more than one leg, leg must be right, left. and subordinate leg is also restricted to left and right. for that i want to show the subordinate name and id and generation of commision on complition of level. so i want to i that how should i fire the querry, and where ?

  9. #8
    Join Date
    Jul 2006
    Posts
    16,478
    Blog Entries
    75
    Rep Power
    143

    Re: plz help me out to create binary tree

    I suspect you are working on a homework assignment, as what you are saying makes no sense outside of that context. A properly designed database will handle all this for you. What are you ACTUALLY trying to accomplish? Without knowing the details you are constrained by, we can't guide you.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  10. #9
    kuki is offline Newbie
    Join Date
    Mar 2009
    Posts
    5
    Rep Power
    0

    Re: plz help me out to create binary tree

    sarika wrote:

    i m making an MLM site in which a member can have two members under
    himself,One member on left side and another on right side. Just like
    binary tree . Now i want to trasverse through the tree using php and
    mysql so that i can show the binary tree created this to user. Pls
    suggested me best possible way to do it. Simply using sql queries
    without joins and functions is very tedious and time consuming . so
    plz suggest me shortest possible script which takes less execution
    time.

  11. #10
    Join Date
    Jul 2006
    Posts
    16,478
    Blog Entries
    75
    Rep Power
    143

    Re: plz help me out to create binary tree

    Do you know how this data will be stored in the database? You still need to read the data from the database into the tree.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

Closed Thread
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Intermediate Check if a given a binary tree, if it is BST or not
    By fayyazlodhi in forum C Tutorials
    Replies: 0
    Last Post: 07-10-2011, 07:33 AM
  2. Binary tree
    By tomy in forum C and C++
    Replies: 6
    Last Post: 08-16-2010, 11:58 PM
  3. Balanced Binary Tree
    By jendana89 in forum Java Help
    Replies: 1
    Last Post: 04-24-2010, 03:10 PM
  4. plz help me out to create binary tree
    By kuki in forum PHP Development
    Replies: 0
    Last Post: 03-30-2009, 06:15 AM
  5. binary tree algorithm
    By fread in forum C and C++
    Replies: 12
    Last Post: 11-24-2008, 12:30 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts