Jump to content

Outputting carriage returns from MySQL


thebopps5

Recommended Posts

I have a php app I am writing for our employees to write up the repairs they are doing. One of the fields in the tickets table is ticket_description (VARCHAR, length: 1000). They often skip to new paragraphs in the description, when explaining multiple items. When they submit the ticket, it is successfully inserted into the DB. When I look at the tickets in phpmyadmin, the formatting is correct, it includes carriage returns. When I output this field using php, it does not include the carriage returns, it is just the description all on one line. Any idea?

Link to comment
https://forums.phpfreaks.com/topic/215700-outputting-carriage-returns-from-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.