![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
26/06/2006, 13:29
|
![Avatar de laran](http://static.forosdelweb.com/customavatars/avatar139898_1.gif) | | | Fecha de Ingreso: junio-2006 Ubicación: un lugar muy humedo....agradable...algunos lugares muy bonitos para visitar
Mensajes: 47
Antigüedad: 18 años, 8 meses Puntos: 0 | |
que onda??????' alguien que me pueda ayudar!!!!!!!!!!!!!no inventennnnn no lo he podido hacer.........aki les muestro mi codigo para ver si me pueden dar la asesoria que espero........y necesito...
<html>
<head>
<title>Requisicion de producto</title>
</head>
<body bgcolor="#000000">
<link rel="stylesheet" type="text/css" href="funciones/tablas.css" />
<table>
<tr><form action="requimodif.php" method="post">
<?php
$conexion=pg_connect("host=localhost port=5432 dbname=toolcrib user=postgres password=laran") or
die("ya hubo pez.....checate la conexion!!");
if($_POST)
$max=pg_query($conexion,"select MAX(no_requisicion) from requisicion") or die ("no pude consultar");
?>
<td><label><font color="#FFFFFF" face="Georgia" size="+1">Requisicion #</font></label></td>
<td><input type="text" name="reki" size="5" value=<?print $max; ?> ></td>
<td><label><font color="#FFFFFF" face="Georgia" size="+1">Cuenta #:</font></label></td>
<td>
<?php
/****************************************aki seleccionas el No de cuenta**************************************/
$sql=pg_query($conexion,"select * from cuenta order by titular")or die ("no pude consultar");
echo '<select name="cta">';
while($linea = pg_fetch_array($sql, null, PGSQL_ASSOC))
{
echo '<option value='.$linea[no_cuenta].'>'.$linea['titular'].'</option>';
}
echo '</select></td>';
?>
</tr><tr><td><input type=submit value="<<ok>>"></td>
</tr>
</table>
</form>
</body>
</html>
se los agradeceria mucho!!!!!!!!!!
__________________ :cool: L@R@N :cool: |