linking status like hi5 prob???
Posted: Sat Jan 07, 2006 10:53 pm
As i stated earlier i m planning to make a simple hi5 using the help of Sitepoint forums... Work is going on and the problems occurs in below
> i had made a table `frensNetwork` which has `user_id`,`fren_id`
fields.....
suppose i had following entered fields
/user_id/ fren_id
1 / 2
1 / 5
1 / 3
2 / 5
2 / 8
5 / 22
(Note: 1 / 2 are values entered in user_id and fren_id fields respectively)
Suppose i m the user having user_id `1` . if i opens my profile and clicks on the 2,5,7 user_id's photo then it should show the status You<->2 OR 5 OR 7
as seen in HI5. But if i go to 2's profile and clik on user_id 8 then it should disply in the status as You<->2<->8.
(i hope u got my problems)
if the networks go huge then we have to generalizse the status...This is the think i want............
Can anybody provide the algorithm or Idea of linking friends as You<->xxx<->YYY
Note: Credit will be given for the help as will be dispalyed as "FrensNetwork Idea BY:[ ]" in the about us section
Thank U for reading
> i had made a table `frensNetwork` which has `user_id`,`fren_id`
fields.....
suppose i had following entered fields
/user_id/ fren_id
1 / 2
1 / 5
1 / 3
2 / 5
2 / 8
5 / 22
(Note: 1 / 2 are values entered in user_id and fren_id fields respectively)
Suppose i m the user having user_id `1` . if i opens my profile and clicks on the 2,5,7 user_id's photo then it should show the status You<->2 OR 5 OR 7
as seen in HI5. But if i go to 2's profile and clik on user_id 8 then it should disply in the status as You<->2<->8.
(i hope u got my problems)
if the networks go huge then we have to generalizse the status...This is the think i want............
Can anybody provide the algorithm or Idea of linking friends as You<->xxx<->YYY
Note: Credit will be given for the help as will be dispalyed as "FrensNetwork Idea BY:[ ]" in the about us section
Thank U for reading