Retrive text from database problem

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Thu Apr 03, 2014 9:05 pm

Without seeing your code for how you're storing or retrieving it, we have to guess at what's going on. If you're saving it as multiple fields, then looping through and echoing them, you'll just need to add in line breaks before your echos, or inline between your values.

Code: Select all

echo $row['value1'] . "\n" . $row['value2'] . "\n" . $row['value3'];
 
for example. If you're storing it all into one field, you should make sure that the character sets being stored and displayed include carriage returns / new line characters. Showing your code will help others give you better answers tailored to your exact situation

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest