nestorvaldez Posted September 28, 2006 Share Posted September 28, 2006 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? Quote Link to comment Share on other sites More sharing options...
alpine Posted September 28, 2006 Share Posted September 28, 2006 please post your current code Quote Link to comment Share on other sites More sharing options...
nestorvaldez Posted September 28, 2006 Author Share Posted September 28, 2006 $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. Quote Link to comment Share on other sites More sharing options...
alpine Posted September 28, 2006 Share Posted September 28, 2006 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] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.