Welcome, Guest. Please Login or Register.
October 07, 2024, 10:26:22 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Line feed in message « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Line feed in message  (Read 1462 times)
Ayeka
Jr. Member
**
Posts: 80


Good & Evil, there is never one without the other.

WWW
Line feed in message
« on: November 07, 2003, 11:06:16 PM »
Reply with quote

I have a problem.  I am trying to store a string like this:


This is my first line.
Here is my second line.

Instead of getting the above I get the following:

This is my first line.nHere is my second line.n

I thought when you had a \n in a string PHP would interpret that has a line feed.  So I guess, what am I doing wrong?

Thank you!
Logged

--Ayeka
Master of the purple!
HAHAhahahahahaha!
Ayeka
Jr. Member
**
Posts: 80


Good & Evil, there is never one without the other.

WWW
Re:Line feed in message
« Reply #1 on: November 08, 2003, 12:20:24 AM »
Reply with quote

I figured it out.  You need to user " instead of ' between text.

Thank you, anyway! :)
Logged

--Ayeka
Master of the purple!
HAHAhahahahahaha!
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Line feed in message « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.014 seconds with 21 queries.