Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/04/2016, 08:21
xerifandtomas
 
Fecha de Ingreso: octubre-2010
Ubicación: España
Mensajes: 1.007
Antigüedad: 13 años, 6 meses
Puntos: 123
Respuesta: Listar Elemenos en una tabla

A ver así:

Código PHP:
Ver original
  1. <table border="1">
  2.         <tr>
  3.         <th>Dolares</th>
  4.         <th>Pesos</th>
  5.         </tr>
  6.        <?php
  7.         for ($a = 1; $a <= 10; $a++) {
  8.             $c = $a * $b;
  9.             echo "<tr>";
  10.             echo "<td>$a US </td>";
  11.             echo "<td>$c Pesos</td>";
  12.             echo "</tr>";
  13.         } ?>
  14. </table>
__________________
Unset($vida['malRollo']);