trying to truncate the spaces and
's on this ****ing string and they wont go away
for($j=0;$j<$count;$j++)
{
$fieces = explode(" ", $pieces[$j], 2);
echo $fieces[1];
$string = str_replace("\
", "", $fieces[1]);
echo $string;
$string2 = str_replace(" ", "", $string);
echo $string2;
$dbmember[$j]=$string2;
echo "debug ".$pieces[$j].", ".$dbmember[$j]."<br/>";
for($k=0;$k<$i;$k++)
{
if($dbmember[$j]==$name[$k])
{
echo "match at ".$k.": ".$dbmember[$j].", ".$name[$k]."<br/>";
if($check[$j]==0)
{
$check[$j]=1;
}
else
{
die("you have entered the same rank twice");
}
}
else
{
echo "no match :".$dbmember[$j].", ".$name[$k]."<br/>";
}
}
}