Ver Mensaje Individual
  #8 (permalink)  
Antiguo 14/06/2009, 12:45
JUAN CARLOS RB
 
Fecha de Ingreso: noviembre-2004
Mensajes: 223
Antigüedad: 20 años, 3 meses
Puntos: 0
Respuesta: Coger el campo codigo

Mira mi codigo:

<td height="10" colspan="2" align="right" valign="bottom" class="Estilo2"><div align="left" class="Estilo2">
<div align="right">Codigo:</div>
</div></td>
<td colspan="2" align="left" valign="bottom">
<?

aquí pondria la consulta php para que me muestre el valor del campo codigo incidencia. No?

?>

</td>
</tr>
<tr>
<td height="10" colspan="2" align="right" valign="bottom" class="Estilo2">Sede:</td>
<td colspan="2" align="left" valign="bottom"><div align="left">
<label></label>
<?
include("conectar_bd.php");
$valor = $_SESSION['usuario'];

$result = mysql_query("select id,nombre,contra,sede from auten where nombre LIKE '".$valor."'");
while ($row=mysql_fetch_array($result))
{
echo "<input name='txtsede'type='text' class='style_input' id='txtsede' size='20' value='".$row["sede"]."' readonly/>";
}
mysql_free_result($result)
?>
</div></td>
</tr>
<tr>
<td height="22" colspan="2" align="right" valign="bottom" class="Estilo2">Fecha:</td>
<td colspan="2" align="left" valign="bottom"><input name="txtfecha" type="text" class="style_input" id="txtfecha" value= <? echo date("d-m-Y H:i:s");?> size="30" readonly/></td>