Ver Mensaje Individual
  #7 (permalink)  
Antiguo 19/08/2008, 15:53
Avatar de hoberwilly
hoberwilly
 
Fecha de Ingreso: julio-2008
Ubicación: Lima - Perú
Mensajes: 769
Antigüedad: 15 años, 10 meses
Puntos: 2
Respuesta: Problemas en actualizacion de catalogo

Amigos, actualmente estoy cambiando en uno de los items (DESCRIPCION) de un TEXT ahora la consulta intento recepcionarlo en un TEXTAREA, el problema esta en que no me recibe nada de la consulta (el textarea esta en blanco)...

editarAdmin.php
----------------------
<?php
include('conec.php');
conectarse();
$registro=mysql_query("select * from catalogo where id='".$_GET['id']."'");
$row=mysql_fetch_array($registro);
?>

<html>
<head>
<title>Editando Catalogo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF">
<form name="form2" method="post" action="actualizarAdmin.php?id=<?php echo $row["id"];?>">
<table width="70%" border="1" align="center" cellspacing="10">
<tr>
<td colspan="2" align="center">ACTUALIZACION DEL PRODUCTO</td>
</tr>
<tr>
<td>Producto</td>
<td><input name="producto" type="text" id="producto" value="<?php echo $row["producto"]?>"></td>
</tr>
<tr>
<td>Descripcion</td>
<td><textarea name="descripcion" rows="5" cols="39" id="descripcion" value="<?php echo $row["descripcion"]?>" onKeyUp="return maximaLongitud(this,80)"></textarea></td>
</tr>

<tr>
<td>Precio</td>
<td><input name="precio" type="text" id="precio" value="<?php echo $row["precio"]?>"></td>
</tr>
<tr>
<td>Descuento</td>
<td><input name="descuento" type="text" id="descuento" value="<?php echo $row["descuento"]?>"></td>
</tr>
<tr>
<td>Estado</td>
<td><input name="estado" type="text" id="estado" value="<?php echo $row["estado"]?>"></td>
</tr>
<tr>
<td>Categoria</td>
<td><input name="categoria" type="text" id="categoria" value="<?php echo $row["categoria"]?>"></td>
</tr>
<tr>
<td>Stock</td>
<td><input name="stock" type="text" id="stock" value="<?php echo $row["stock"]?>"></td>
</tr>
<tr>
<td>Id Admin</td>
<td><input type="text" name="admin" id="admin" value="<?php echo $row["idAdmin"]?>"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="Submit" name="Submit" value="Actualizar"></td>
</tr>
</table>
</form>
</body>
</html>

Gracias de antemano por su colaboracion