Does anyone know if it is possible to insert data from an html form into a MySQL database and then retrieve this data with the formatting still preserved? At the moment, when I display the retrieve data it is displayed as one large block of text rather than separated paragraphs.
Try using: str_replace("\n","<br>",$dbData); Code (markup): This will give you your paragraph formatting.