hi there - i am writing a script for gaming clan memberlisting - i have two scripts which can sort ppl by their administration level and by their selected group. Their selected group is a text input string and the admin level is a numeric reference.
the problem lies in making the data display when sorting by the text string. I am displaying the code for each section like this.
##SUBCATAGORY START##
print "Selected group name:\n<br><br>";
$i = 0;
while ($i < count($thedata)) {
$temp1 = explode("|", $thedata[$i]);
$t_nick = $temp1[0];
$t_email = $temp1[1];
$t_rank = $temp1[2];
$t_squad = $temp1[3];
if ($t_squad == "TEXT STRING HERE") {
print "<a href=\"mailto:$t_email\"><font color=\"#999999\">Cancer-$t_nick</font></a>";
if (Chop($t_squad) != "") {
print " (<i>$t_squad</i>)<br>";
} else {
print "<br>";
}
}
$i++;
}
print "<br><br>";
##SUBCATAGORY END##
#But when i run the script i get the group headers and no data displayed.
Can anyone fix this? its driving me nuts!!!