Jump to content


Photo

Carriage Return


  • Please log in to reply
1 reply to this topic

#1 krone

krone
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 06 July 2006 - 03:56 AM

Hi.

ive just started creating a forum.. for inserting post/thread. it does not read carriage returns. is there a function that i can use that will read carriage returns and put it in mySql accordingly?

the forum post/thread elements are "TEXT" data type in mySql.

eg.
if i post
one
two
three

it comes out in the post as "one two three"

;D cheeers

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 06 July 2006 - 03:58 AM

It is being inserted into the database fine. However, you'll need to use nl2br when displaying the data.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users