Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/04/2013, 07:41
db87
 
Fecha de Ingreso: marzo-2013
Mensajes: 11
Antigüedad: 11 años, 1 mes
Puntos: 0
Respuesta: Bucle dentro de bucle ¿es posible?

Esto es lo que tengo ahora...


<table>
<?php do { ?>
<?php if ((($row_notas['nota_id'] != 0) && ($row_notas['nota_tarea'] == ($row_tareas['tarea_id'])))) { ?>
<tr>
<td>
<a href="http://www.forosdelweb.com/f18/usuarios/perfil.php?q=<?php echo $row_notas['nota_usuario']; ?>"><img src="http://www.forosdelweb.com/f18/usuarios/imagenes/<?php echo ObtenerImagenUsuario ($row_notas['nota_usuario']); ?>" height="60" /></a>
</td>
<td><a href="http://www.forosdelweb.com/f18/usuarios/perfil.php?q=<?php echo $row_notas['nota_usuario']; ?>"><strong><?php echo ObtenerNombreUsuario ( $row_notas['nota_usuario']); ?></strong></a></td>
</tr>
<tr>
<td><?php echo $row_notas['nota_contenido']; ?></td>
</tr>
<tr>
<td> <!-- DESDE AQUI -->
<?php do { ?>
<?php if (($row_notas['nota_id']) == ($row_documentos['documento_nota'])) { ?>

<a href="docs_tareas/<?php echo $row_documentos['documento_archivo']; ?>" target="_blank"><img src="docs_tareas/<?php echo $row_documentos['documento_archivo']; ?>" height="60" /></a>

<?php } ?>
<?php } while ($row_documentos = mysql_fetch_assoc($documentos)); ?>
</td> <!-- HASTA AQUI -->
<?php } ?>
<?php } while ($row_notas = mysql_fetch_assoc($notas)); ?>
</table>