per andare a capo prova a usare questa istruzione:

$testo = str_replace("\n","
",$testo_da_cambiare);

sostituisci il fine riga del db con