![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
10/06/2002, 13:19
|
![Avatar de Wakkos](http://static.forosdelweb.com/customavatars/avatar10688_2.gif) | Colaborador | | Fecha de Ingreso: octubre-2001 Ubicación: (cerca)
Mensajes: 1.795
Antigüedad: 23 años, 4 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!!!! |