Programación php
Email: Password:


¡Regístrate gratis! | ¿Has perdido tu password?

Home
Blog

En él que podrás informarte de todas las noticias relacionadas con el posicionamiento de páginas web.

Ir al Blog de posicionamiento web



Foro de programación en PHP

Responder el mensaje

Meter php en tablas

Autor: Fernando
Publicado: 21-1-2009 03:08 AM
Hola, a ver si alñguien me puede ayudar, tengo un codigo en php de un script, el cual es este

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="wg_images/wgstyle.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>Documento sin título</title>
</head>

<body>
<?php

require_once('windguru.inc.php'); // this will load the necessary classes

windguru_forecast(100,'SOME_CODE'); // includes your forecast for spot id=100
windguru_forecast(100,'SOME_CODE','fr'); // the same but in french language

?>
</body>
</html>


la parte de windguru_forecast es la que presenta, como se ve en el enlace [a href="http://www.mardecanarias.com/windguru/windguru.php">http://www.mardecanarias.com/windguru/windguru.php[/a]

el caso es que me gustaria formatear la presentacion y ponerlo en filas de 2 y separados, vamos en una tabla.

Intento hacer esto pero no me deja

<table>
<tr>
<td> <?php</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> require_once('windguru.inc.php'); // this will load the necessary classes</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td> windguru_forecast(100,'SOME_CODE'); // includes your forecast for spot id=100 </td>
</tr>
<tr>
<td> windguru_forecast(100,'SOME_CODE','fr'); // the same but in french language</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> ?></td>
</tr>
</table>


Lo siento pero soy un muñon, alguien me pueda echar un cable......