Ver Mensaje Individual
  #12 (permalink)  
Antiguo 30/04/2012, 17:34
onRush
 
Fecha de Ingreso: abril-2012
Ubicación: Trelew
Mensajes: 14
Antigüedad: 12 años
Puntos: 2
Respuesta: Problema con bucles de php en html

Prueba este código:


Código PHP:
Ver original
  1. <html>
  2. <head>
  3. <script src="funciones.js" language="JavaScript"></script>
  4. <link rel="StyleSheet" href="estilos.css" type="text/css">
  5. </head>
  6. <body>
  7. <h1>Titulo</h1>
  8. <div id="menu">
  9.  
  10.  
  11.    
  12.                 <table border ="1">
  13.                    
  14.                       <tr>
  15.                         <?php for ($j=1; $j < 10; $j++){ ?>                          
  16.                                   <td> <?php echo $j; ?> </td>
  17.                                 <?php for($i=0; $i < 10; $i++){ ?>
  18.                                    <td><p><a id="enlace1" href="pagina1.php?cod=> <?php $i; ?></a></p></td>
  19.                                 <?php } ?>
  20.                       </tr>
  21.                         <?php } ?>
  22.                    
  23.                 </table>
  24.  
  25.  
  26. </div>
  27. <div id="detalles">Seleccioneeee la posición que desee.</div>
  28.  
  29.  </body>
  30. </html>