We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,608 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

table records to tree view CI

hi ,

i have two table i want result in tree view.how to do it.
if i have n level question and answer then what is db design for it

thnx for any help

Attachments child.JPG 32.43KB parent.JPG 27.31KB
3
Contributors
5
Replies
3 Days
Discussion Span
1 Year Ago
Last Updated
6
Views
rohitrohitrohit
Junior Poster
134 posts since Oct 2007
Reputation Points: 15
Solved Threads: 5
Skill Endorsements: 0

??
what do you mean n level? Are they based around pk/fkcardid?

---7K post!---

So is this like a card name for the node and then sets of questions and answers?

diafol
Keep Smiling
Moderator
10,625 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,506
Skill Endorsements: 57

thnx for reply
suppose a person post a question so multiple answer can be submitted or question can be a asked.

on every answer and question there parent child decided.


i need db design and guide for acciving this..

sorry for bad eng

tnx

rohitrohitrohit
Junior Poster
134 posts since Oct 2007
Reputation Points: 15
Solved Threads: 5
Skill Endorsements: 0

sorry for bad eng

Yeah well, not my first language either, but I don't understand your last comment.

diafol
Keep Smiling
Moderator
10,625 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,506
Skill Endorsements: 57

Yeah well, not my first language either, but I don't understand your last comment.

tops-tech.com/demo/DecisionTree1/editTree.php

i want to achive this but it is in xml i wnt it with db

rohitrohitrohit
Junior Poster
134 posts since Oct 2007
Reputation Points: 15
Solved Threads: 5
Skill Endorsements: 0

Not quite sure if this is what you mean, but if the answer decides the next question, you can add a second parent id (next question id) to the child table.

pritaeas
Posting Prodigy
Moderator
9,265 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,456
Skill Endorsements: 86

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0742 seconds using 2.73MB