Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/09/2009, 08:48
KrowMx
 
Fecha de Ingreso: junio-2009
Mensajes: 128
Antigüedad: 14 años, 10 meses
Puntos: 5
Respuesta: 2 query 1 while

Si te refieres a recorrer los 2 query hasta que no exista nada, una solución puede ser utilizar && AND en el while

while(($line = mysql_fetch_assoc($results) && ($line1 = mysql_fetch_assoc($results1)) {
echo "<noticia>";
echo "<titulo>" . $line["post_title"] . "</titulo>\n";
echo "<mensaje>" . $line["post_excerpt"] . "</mensaje>\n";
echo "<fecha>" . $line["post_date"] . "</fecha>\n";
echo "<imagen>" . $line["imagepath"] . "</imagen>\n";
echo "</noticia>\n";
}

Saludos