Hi guys, I'm new in php and i'm having a problem. My problem is, how to print and save to database. here is the schema,
1
/ \
2 3
/\ /\
4 5 6 7
what is php algorthym for that case?. 1 is sponsor for 2 and 3, 2 is sponsor for 4 and 5, 3 is sponsor for 6 and 7.
would you like to give me some glimpse or the logic, i want to store that tree into the database also. so when i input how many node you want, (eq 7 nodes) the structure will be like that. any one can help?
thanks a bunch.
Hans