Utilizza questa funzione prima di salvare i dati nel db:

$stringa = nl2br($stringa);

Sostituisce i \n in