Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/01/2011, 07:53
chamorrelius
 
Fecha de Ingreso: enero-2011
Mensajes: 6
Antigüedad: 13 años, 3 meses
Puntos: 1
Ayuda con ejercicio php y html tabla

Hola, tengo un ejercicio que seguramente sea muy facil pero no consigo hacerlo, a ver si me pueden ayudar...


tengo que hacer esa tabla y hacer un if.... para seleccionar cuales son divisores y cuales no...

tengo este codigo pero no consigo realizar la tabla dicha. soy principiante en php...


<html>
<head>
<title>Practica 1 PHP</title>

</head>
<body>
<h1>Nombres Divisibles</h1>
<?php
echo "<table border>";
for($i=0; $i<1; $i++){
$i [1] = array(50);
echo"<tr>";
for($j=0; $j<12; $j++){

echo "<td> $i </td>";



}

echo "</tr>";
//echo "</table>";
}
?>
</body>
</html>

Muchas gracias!