$res = mysql_query($sql); while ($row = mysql_fetch_array($res)) { ..... echo nl2br($row['texto']) ..... }