I'm not including everything here, just as you requested a "sample".
Assuming 1 item is returned from your query, and assuming you can figure out how to get into the elements of an array.
<?PHP
$query = "SELECT * FROM table";
$result = mysql_query($query,$link);
$array = mysql_fetch_array($result);
?>
<textarea cols="30" rows="10">
<?PHP print $array[elementyoufetched]; ?>
</textarea>
John