
17/09/2009, 08:48
|
| | Fecha de Ingreso: junio-2009
Mensajes: 128
Antigüedad: 15 años, 8 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 |