Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
And this is the code I tried it with.$refferal[0] = "1|2|3|4" #first refferals $refferal[1] = "1|2|3|4|5|6" #second refferals $refferal[2] = "1|2|3" #third refferals
Now were it freezes my page is this section#Get Reffers my @ref; (@reffer) = build_reffers($mem_info[2]); ## Build Refferal List sub build_reffers { $REF = shift; $sth = $dbh->prepare("SELECT username FROM wbwm_members WHERE reffera +l='$REF'"); $sth->execute; while($username = $sth->fetchrow_array) { push(@users, $username); } $users = join(/\|/, @users); push(@ref, $users); foreach $name (@users) { build_reffers($name); } return(@ref); }
I dont get how that is freezing the page. This little script im tring to do is finding the first level refferals, and the second level, and so on. Like a first level would reffer a second so, $reffer[0] reffered a $reffer[1]foreach $name (@users) { build_reffers($name); }
edited: Tue Nov 5 04:10:04 2002 by jeffa - s/\[/[/g
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Refferal List
by djantzen (Priest) on Nov 02, 2002 at 23:05 UTC | |
by Anonymous Monk on Nov 02, 2002 at 23:16 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |