$token_max = '2';
$token_in_server = '0';
$token_in_server1 = mysql_num_rows(mysql_query("SELECT * FROM token WHERE server = '1'"));
$token_in_server2 = mysql_num_rows(mysql_query("SELECT * FROM token WHERE server = '2'"));
$token_in_server3 = mysql_num_rows(mysql_query("SELECT * FROM token WHERE server = '3'"));
$token_in_server4 = mysql_num_rows(mysql_query("SELECT * FROM token WHERE server = '4'"));
$token_in_server5 = mysql_num_rows(mysql_query("SELECT * FROM token WHERE server = '5'"));
if($token_in_server1 < $token_max){
echo 'Add server 1';
}else if($token_in_server2 < $token_max){
echo 'Add server 2';
}else if($token_in_server3 < $token_max){
echo 'Add server 3';
}else if($token_in_server4 < $token_max){
echo 'Add server 4';
}else if($token_in_server5 < $token_max){
echo 'Add server 5';
}