Tema: tablas y php
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/09/2004, 13:41
adimensional
 
Fecha de Ingreso: agosto-2004
Ubicación: Valencia
Mensajes: 149
Antigüedad: 19 años, 8 meses
Puntos: 0
<table border="1" cellpadding="5">
<?
include ('tuconexion.php');
$query='SELECT R.id, name, firstname, lastname, R.detail, R.released_date from "Users" as U, "Reports" as R where U.id = R.id_user order by R.id;';
$result = mysql_query($query);
while ($fila=mysql_fetch_object($result)) {
?>
<th># de Reporte</th><th>Nombre</th><th>Apellido Paterno</th><th>Apellido Materno</th><th>Descripcion</th><th>Fecha de Envio</th>
<tr mamba:id="my_layout">
<td align="rigth"> <? echo fila->id; ?></td>
<td align="rigth"> <? echo fila->nombre; ?></td>
<td align="rigth"> <? echo fila->apellido_paterno; ?></</td>
<td align="rigth"> <? echo fila->descripcion; ?></</td>
<td align="rigth"> <? echo fila->fecha de envio; ?></td>
</tr>
<?
}
<?
</table>

Suponiendo que la consulta esté bien realizada.