Ver Mensaje Individual
  #5 (permalink)  
Antiguo 08/07/2010, 10:06
Avatar de Gustavo72
Gustavo72
 
Fecha de Ingreso: abril-2008
Ubicación: -32.956045,-60.661355
Mensajes: 197
Antigüedad: 16 años
Puntos: 9
Respuesta: Duda sacar registros

Sería así:

Código PHP:
while($row=mysql_fetch_assoc){
     echo 
$row['Titulo'];
     
     
//Agregá lo siguiente:
     
$C2=mysql_query("SELECT Nombre FROM archivos WHERE idNoticia=".$row["idNoticia"]);
     while (
$row2=mysql_fetch_assoc($C2)) {
          echo 
$row2["Nombre"]."<br />\n";
     }
     
mysql_free_result($C2);
     
//Fin del agregado

__________________
Saludos.

Gustavo

Última edición por Gustavo72; 08/07/2010 a las 10:17