I have a "matchmaking" script (as if it were a game). He checks every 3 seconds a table to see if there are 10 players who are not playing. But I also need to check if these 10 players are one of them.
The select is like this
$busca_db_qtd = mysqli_query($conexao, "SELECT ativo, gamemode, playing, id_user FROM users_buscando WHERE ativo = '1' and gamemode = '$gamemode' and playing = '0' and reservados = '0' LIMIT 10");
I need to check if these 10 players, one of them has my id. How can I do this without having to do a while in php and use a lot of processing (I think it uses ne)?