hola hice una consulta y necesito mostrarlo en un textarea pero no me aparece nada, esto es para modificar dato ejemplo modificar.php
si coloco esto en un iput si lo muestra! Nesesito mostrar el resultado dentro del textarea
Código PHP:
<input type="text" name="strDescrip" value="<?php echo htmlentities($row_DatosProducto['strDescrip'], ENT_COMPAT, 'iso-8859-1'); ?>" size="32" />
Código PHP:
<textarea type="text" name="strDescrip" cols="24" rows="5" value="<?php echo htmlentities($row_DatosProducto['strDescrip'], ENT_COMPAT, 'iso-8859-1'); ?>"></textarea>
arriba tengo este codigo para la consulta y luego de modificar inserto de nuevo
Código PHP:
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
$updateSQL = sprintf("UPDATE tblproducto SET strNombre=%s, strSEO=%s, strDescrip=%s, strPrecio=%s, intCategoria=%s, strImagen=%s WHERE idProducto=%s",
GetSQLValueString($_POST['strNombre'], "text"),
GetSQLValueString($_POST['strSEO'], "text"),
GetSQLValueString($_POST['strDescrip'], "text"),
GetSQLValueString($_POST['strPrecio'], "text"),
GetSQLValueString($_POST['intCategoria'], "int"),
GetSQLValueString($_POST['strImagen'], "text"),
GetSQLValueString($_POST['idProducto'], "int"));
mysql_select_db($database_conexionzapatos, $conexionzapatos);
$Result1 = mysql_query($updateSQL, $conexionzapatos) or die(mysql_error());
$updateGoTo = "productos_lista.php";
if (isset($_SERVER['QUERY_STRING'])) {
$updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
$updateGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $updateGoTo));
}
$varProducto_DatosProducto = "0";
if (isset($_GET["recordID"])) {
$varProducto_DatosProducto = $_GET["recordID"];
}
mysql_select_db($database_conexionzapatos, $conexionzapatos);
$query_DatosProducto = sprintf("SELECT * FROM tblproducto WHERE tblproducto.idProducto = %s", GetSQLValueString($varProducto_DatosProducto, "int"));
$DatosProducto = mysql_query($query_DatosProducto, $conexionzapatos) or die(mysql_error());
$row_DatosProducto = mysql_fetch_assoc($DatosProducto);
$totalRows_DatosProducto = mysql_num_rows($DatosProducto);
mysql_select_db($database_conexionzapatos, $conexionzapatos);
$query_ConsultaCategorias = "SELECT * FROM tblcategoria ORDER BY tblcategoria.strDescripcion ASC";
$ConsultaCategorias = mysql_query($query_ConsultaCategorias, $conexionzapatos) or die(mysql_error());
$row_ConsultaCategorias = mysql_fetch_assoc($ConsultaCategorias);
$totalRows_ConsultaCategorias = mysql_num_rows($ConsultaCategorias);
?>