Hi All,
I have MySQL database that is storing address details of users, and instead of trying to work out how many fields each user is going to need for their address, I was just going to use a textarea tag for the input. This happily passes the data to the MySQL database, and stores it as it is displayed in the textarea box. The problem I have is when trying to retrieve the data, it removes all the carrage returns. For example:
How it appears in the textarea box (also appears in mysql like this too:
-----------------------------------
My Address
My Road
My Town
How it is returned back to HTML on a SELECT function:
-----------------------------------------------------
My Address My Road My Town
Is there any way to correct that?
Jon
I have MySQL database that is storing address details of users, and instead of trying to work out how many fields each user is going to need for their address, I was just going to use a textarea tag for the input. This happily passes the data to the MySQL database, and stores it as it is displayed in the textarea box. The problem I have is when trying to retrieve the data, it removes all the carrage returns. For example:
How it appears in the textarea box (also appears in mysql like this too:
-----------------------------------
My Address
My Road
My Town
How it is returned back to HTML on a SELECT function:
-----------------------------------------------------
My Address My Road My Town
Is there any way to correct that?
Jon