<?php
$result = mysql_query("SELECT addr FROM monitor",$db);
$array = mysql_fetch_array($result);
echo '<br><textarea name=\'main_text\' id=\'main_text\' cols=50 rows=15>';
do
{
echo $array['addr'] . "\r\n";
}
while($array = mysql_fetch_array($result));
echo '</textarea>';
?>