Well dont get me wrong but Im a bit rusty with PHP, just got back after 3 month of not touching it, so this code hasnt been tested yet and dont blame me if its not right...
This is the page which will get the data from the mysql and siplay it in a editable text area with buttons:
<?php
//Connect and select database
$mysqlconn = mysql_connect("","",""); //your info host,user,pass
mysql_select_db("dbname",$mysqlconn); //add your dbname
$sql_select ="SELECT *FROM profiles WHERE id = " . $_GET['id'] . "";
$sql_results = mysql_query( $sql_select ) or die( mysql_error() );
//mysql_fetch_array it
$sql_array = mysql_fetch_array( $sql_results );
?>
<html>
<head>
<title>Update Your Infomation</title>
</head>
<body>
<form name="form1" method="post" action="actionpage.php">
<textarea name="textarea" cols="50" rows="8"> <?php echo $sql_array[ "profile" ]; ?> </textarea>
<input type="submit" name="Submit" value="Update">
<input type="reset" name="Submit2" value="Reset">
<input name="id" type="hidden" id="id" value="<?php echo $sql_array[ "id" ]; ?>">
</form>
</body>
</html>
This is actionpage.php which will process the UPDATE DB
<?php
//Connect and select database
$mysqlconn = mysql_connect("","",""); //your info host,user,pass
mysql_select_db("dbname",$mysqlconn); //add your dbname
$sql_update = "UPDATE profiles SET profile = " . $_POST[ 'textarea' ] . " AND id = " . $_POST['id'] . " WHERE id = '" . $_GET[ 'id' ] . "'";
$result_update = mysql_query( $sql_update ) or die( mysql_error() );
echo "You profile has been updated, thankyou for using our system";
?>
I hope they work, ask any questions you may have...