dimanche 1 février 2015

how to ads two childs fo a parent in db


Vote count:

-1




I have to make php web application in which each user can add 2 another users will get marks and if one if this users add 3 other users then the orginal user who added him will get +1 mark.. so aa you see here I need to keep tracking of each added user and by who is added I know there is a tree based sql queries but it will not do the trick because then if a added b and c I can only know that b is added by a and c is added by a but what I really want here is that a has addes b and c so it is like b abd c is in one set that added by a and if the user added another pair of usersc let us say d and e then this pair they will be added in other set that added by a so what is the best way here to that?



asked 37 secs ago







how to ads two childs fo a parent in db

Aucun commentaire:

Enregistrer un commentaire