Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/06/2002, 13:19
Avatar de Wakkos
Wakkos
Colaborador
 
Fecha de Ingreso: octubre-2001
Ubicación: (cerca)
Mensajes: 1.795
Antigüedad: 22 años, 6 meses
Puntos: 59
Que hay de malo en este query?

$query_showPosts = "SELECT jugador FROM parados where jugador != '".$remote_userName."' limit 1";
$result_showPosts = mysql_query($query_showPosts, $link);
$num_posts = mysql_num_rows($result_showPosts);
while ($row = mysql_fetch_array($result_showPosts)) {
$query_juegos = "INSERT INTO match (jugador1,jugador2) VALUES ($row[0]),$remote_userName";
if (mysql_query($query_juegos, $link)) {
echo "<br>".$row[0]." vs ".$remote_userName."\n";
}
else{
echo "Huh?";
}


}

Me devuelve el 'Huh?' cuando todas las condiciones se cumplen!!!!