id"); $x = mysql_fetch_array($r); mysql_free_result($r); $n = $x[0]; if ($n != $team->nusers) { echo "team $team->id: $n $team->nusers\n"; mysql_query("update team set nusers=$n where id=$team->id"); } } mysql_free_result($result); } set_nusers(); ?>