io hice uno pero por medio de combobox...
Código PHP:
Ver original//este es para el combo
<?php
if (!$CONEXION) {
die("p class='Estilo1' align='center'>LO SIENTO, PERO NO HA PODIDO CONECTARSE A MYSQL: </p>" . mysql_error()); }
else{
echo "<select name=ART>";
echo "<option selected='' value=''> [ Seleccione ] </option>";
echo "<option value=".$ARTICULO["folio"].">".$ARTICULO["folio"]."</option>";
}
echo "</select>";
}
else{
$ERROR_CONSULTA="NO SE PUEDEN MOSTRAR LOS DATOS DEBIDO AL SIGUIENTE ERROR: ";
}
}
?>
<input type="submit" name="ACEPTAR" value="ACEPTAR" />
Código PHP:
Ver original<?php
if (isset($_POST["ACEPTAR"])){ $ART=$_POST["ART"];
("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.folio=$ART");
echo "<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>
<tr>
<td>".$fila['folio']."</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'>EL FOLIO NO EXISTE</div>";
}
}
?>
Espero te sirba para que puedas guiarte...