Ver Mensaje Individual
  #6 (permalink)  
Antiguo 16/01/2010, 10:37
Avatar de CHuLoSoY
CHuLoSoY
 
Fecha de Ingreso: febrero-2002
Ubicación: Ribeira (Galicia)
Mensajes: 1.900
Antigüedad: 22 años, 2 meses
Puntos: 29
Respuesta: Necesito ayuda con código PHP

Ni idea. Porqué no te instalas apache y listo?

Por cierto, tienes mal cosas muy gordas:
Mal:
Código PHP:
Ver original
  1. echo "<td>"."x"."</td>";
Bien:
Código PHP:
Ver original
  1. echo "<td>".$x."</td>";

Mal:
Código PHP:
Ver original
  1. echo "</tr>;
Bien:
Código PHP:
Ver original
  1. echo "</tr>";

Te faltaban corchetes, algunas líneas acababan por dos puntos (:) en lugar de punto y coma (;)..... mil etcéteras. Fíjate en el código bien.
Indenta el código correctamente (tabulando) y acostúmbrate a hacerle un HIGHLIGHT de PHP (en el editor de mensajes de este foro) para reconocer bien los códigos.

Código PHP:
Ver original
  1. <?php
  2.  
  3. echo "<table>";
  4. echo "<tr>";
  5. echo "<td>".$x."</td>";
  6.  
  7. for ($cabecera=1;$cabecera<=10;$cabecera++){
  8.        echo "<td>";
  9.        echo $cabecera;
  10.        echo "</td>";
  11. }
  12. echo "</tr>";
  13.  
  14.  
  15.  
  16. for ($x=1;$x<=10;$x++) {
  17.       echo "<tr>";
  18.       echo "<td>";
  19.       echo $x;
  20.       echo "</td>";
  21.  
  22.       for ($y=1;$y<=10;$y++) {
  23.            $multiplicacion=$x*$y;
  24.            echo "<td>";
  25.            echo $multiplicacion;
  26.            echo "</td>";
  27.       }
  28.      echo "</tr>";
  29. }
  30.  
  31. echo "</table>";
  32.  
  33. ?>
__________________
ESQUIO Dominios y Hosting
Las mejores características con los mejores precios.