Jump to content

[SOLVED] multiple lines in db


chocopi

Recommended Posts

when i store a message in my db i use nl2br() which puts into the database as i would expect (with the message with its new lines intact). but when i select the message from the database it only takes the top line and deletes the rest. I have it stored in the database as varchar(255)

 

I have now changed it from varchar to text, but now nothing is showing up

 

I have it sorted now, but i am unuse why it didnt work ???

 

Thanks,

 

~ Chocopi

Link to comment
https://forums.phpfreaks.com/topic/55142-solved-multiple-lines-in-db/
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.