Ver Mensaje Individual
  #7 (permalink)  
Antiguo 22/10/2010, 11:07
dianays
 
Fecha de Ingreso: agosto-2010
Mensajes: 147
Antigüedad: 13 años, 8 meses
Puntos: 1
Respuesta: Quiero mostrar mas de un dato...

<?php
if (isset($_POST["ACEPTAR"])){
$ART=$_POST["nombre"];
$ART_SEL=mysql_query
("SELECT folio, fecha, hora, unidad, nombre
FROM reporte, unidades, usuarios
WHERE reporte.id_unidad=unidades.id_unidad
AND reporte.id_nom=usuarios.id_nom
AND reporte.id_nom=$ART");
$error=mysql_error($CONEXION); echo $error;
<table width="800" border="1" align="center">
<tr>
<th width='90' scope='col'>FOLIO</th>
<th width='66' scope='col'>FECHA</th>
<th width='65' scope='col'>HORA</th>
<th width='69' scope='col'>UNIDAD</th>
<th width='66' scope='col'>NOMBRE</th>
</tr>
while($fila=mysql_fetch_array($ART_SEL)){
echo "
<tr>
<td><a href='tu_direccion'">.$fila['folio']."</a></td>
<td>".$fila['fecha']."</td>
<td>".$fila['hora']."</td>
<td>".$fila['unidad']."</td>
<td>".$fila['nombre']."</td>
</tr>
";


}
</table>
}
}
/*else{
echo "<div class='Estilo2' align='center'>No existe reporte</div>";
}*/
?>