[img]http://files.jb51.net/file_images/article/201403/20140317150458.jpg?201421715549[/img]
[url=#]<?php
include("db.php");
$sql=mysql_query("select email from users where user_id='1'");
$row=mysql_fetch_array($sql);
$profile=$row['email'];
?>
<div class="text_wrapper" style=""><?php echo $profile; ?></div>
<div class="edit" style="display:none"><textarea class="editbox" cols="23" rows="3" name="profile_box"></textarea></div>
</div>
update_profile_ajax.php
<?php
if($_POST['data'])
{
$data=$_POST['data'];
$data = mysql_escape_String($data);
$sql = "update users set email='$data' where user_id='1'";
mysql_query( $sql);
}
?>