for ($i = 0; $i < count($lastgames); $i++) {
if ($lastgames[$i]->id != 0 && $lastgames[$i]->team_id != '667') {//ugly hack for team X if it's in the results more than once
echo '
';continue; } //ugly hack for team X if it's in the results more than once :(
for ($c = 0; $c < count($lastgames); $c++) {
if ($lastgames[$c]->team_id == $competitor) {
echo ''.$lastgames[$c]->screenname.'