Jump to content

Archived

This topic is now archived and is closed to further replies.

nestorvaldez

How show Text field type

Recommended Posts

Hi
I have a Text Type Field in Mysql.. I can save the data but If want to show it in a select or retrieve to update I can't get it. I can't see the data I've saved in the table. How can I do this?

Share this post


Link to post
Share on other sites
$id = $_GET['id'];
$query = mysql_query("SELECT per_mensaje FROM `personal` WHERE PER_ID='$id'");
$row = mysql_fetch_array($query);

$mensaje = $row['per_mensaje'];

<td><textarea name="mensaje" cols="40" rows="10" class="tabla" id="textarea3" tabindex="16"  value="<?php echo("$mensaje");?>"></textarea></td>


PS: The PER_MENSAJE field is a TEXT type.

Share this post


Link to post
Share on other sites
I think it is within the textarea tag you have the error, it should be
[code]

<textarea name="mensaje" cols="40" rows="10" class="tabla" id="textarea3" tabindex="16"><?php echo $mensaje; ?></textarea>

[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.