<?php
$db = mysql_connect("localhost","root","");
mysql_select_db("bd",$db);
?>
<?php
$result = mysql_query("SELECT addr FROM monitor",$db);
$array = mysql_fetch_array($result);
do
{
{echo "<br><textarea name='main_text' id='main_text' cols=50 rows=15>".$array['addr'].'</textarea>';}
}
while($array = mysql_fetch_array($result));
?>
<?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>';
?>