Ver Mensaje Individual
  #6 (permalink)  
Antiguo 12/05/2011, 01:26
Avatar de leo_nqn
leo_nqn
 
Fecha de Ingreso: abril-2010
Ubicación: Neuquen
Mensajes: 461
Antigüedad: 14 años
Puntos: 24
Respuesta: soy principiante , codigo simple

no asi:

Código:
<html>
<head>
<title>Tablas en Php y Html
</title>
</head>
<body>
<?php echo "<h1><u>Tabla 1</u></h1>
<br>
<p align='center'>
<table width='200' height='100' border='3'>
<tr>
<td bgcolor='yellow' align='center'>Celda 1
</td>
<td bgcolor='orange' align='center'>Celda 2
</td></tr>
</table>
</p>
<br>
<hr width='100%' align='center' size='5' noshade>
<br>
<br>
<br>
<h1><u>Tabla 2</u></h1>
<p align='center'>
<table width='200' height='100' border='3'>
<tr>
<td bgcolor='#c0ff20' align='center'>Celda 1
</td>
<td bgcolor='#ff0040' align='center'>Celda 2
</td>
</tr>
<tr>
<td bgcolor='#8000ff' align='center'>Celda 3
</td>
<td bgcolor='#ffff00' align='center'>Celda 4
</td>
</tr>
</table>
</p>
<br>"
?>
</body>
</html>
Fijate la diferencia esta en la linea 7... saque la comilla y la puse antes de cerrar php .. PD si no te anda con la comilla doble.. proba con la simple... probalo en tu local host ! saludos!
__________________

Blog: http://leonardonqn.blogspot.com
Twitter:@Leo_FFerreyra