Comunidad de diseño web y desarrollo en internet online

Listar tabla matriz 3D

Citar            
MensajeEscrito el 06 Oct 2009 10:34 am
Hola,

tengo una tabla de mysql que es una matriz de 3 dimensiones que quiero mostrar en php, el problema es que no se cómo hacerlo.

mi idea es:

metros/segundo | 1| 2| 3|...

10 | si| no| no|...
20 | no| si| no|...
30 | no| no| si|...
...


de momento lo muestro así, pero está incompleto:

<table width="500" border="1">
<tr>
<td width="97"><strong>Metros / Segundos</strong></td>
<td width="144"><?php
$sql = "SELECT metros,segundos,activo ORDER BY metros DESC";
$result = mysql_query($sql);
if (!$result) {
die('No se ha listado el dato por: ' . mysql_error());
}
while($row = mysql_fetch_array($result)){
echo '<td align=center>' .$row['metros'].'</td>';
echo '<td align=center>' .$row['segundos'].'</td>';
echo '<td align=center>' .$row['activo'].'</td>';
}
</td>
</tr>
</table>

los metros, los segundos y el "si/no" lo tengo almacenado en la tabla.
¿Alguna solución?

gracias.

Por pedea

2 de clabLevel



 

firefox
Citar            
MensajeEscrito el 06 Oct 2009 03:04 pm

Por Inyaka

Claber

3176 de clabLevel

9 tutoriales
2 articulos

Genero:Masculino   Desarrollador de GAIA

Programador y fotógrafo

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.