noobkidJoin Date: 2007-09-17 Post Count: 649 |
If I'm printing a multiline row value with PHP it outputs as one line;
Ex;
Echo "$row['Message']";
So this;
1
2
3
Turns into this;
1 2 3 |
|
noobkidJoin Date: 2007-09-17 Post Count: 649 |
Probably useless bump. |
|
noobkidJoin Date: 2007-09-17 Post Count: 649 |
Bump. |
|
noobkidJoin Date: 2007-09-17 Post Count: 649 |
Bump. |
|
noobkidJoin Date: 2007-09-17 Post Count: 649 |
Bump. |
|
|
dude, this isn't the best place to post these problems, most of the people here only know Lua. post your problems on PHP helping forums and you'll have a better chance of getting help >.> |
|
noobkidJoin Date: 2007-09-17 Post Count: 649 |
Yea...but stravant could help :P |
|
|
me: then message him...
you: *facepalm* |
|
noobkidJoin Date: 2007-09-17 Post Count: 649 |
Bump |
|
noobkidJoin Date: 2007-09-17 Post Count: 649 |
Bump |
|
noobkidJoin Date: 2007-09-17 Post Count: 649 |
Bump |
|
noobkidJoin Date: 2007-09-17 Post Count: 649 |
Bump |
|
1waffle1Join Date: 2007-10-16 Post Count: 16381 |
Echo "$row['Message\n']";
>_> |
|
noobkidJoin Date: 2007-09-17 Post Count: 649 |
That's not what I wanted,
'Message' is a the message value in a row |
|
1waffle1Join Date: 2007-10-16 Post Count: 16381 |
So what are you trying to achieve? Concatenation? |
|
noobkidJoin Date: 2007-09-17 Post Count: 649 |
Im trying to print the posts in a thread but they appear as one line.. |
|
1waffle1Join Date: 2007-10-16 Post Count: 16381 |
So create a new line. |
|
noobkidJoin Date: 2007-09-17 Post Count: 649 |
You don't really get it;
I have multiline text value in a row inside the database..
But when I print it to the site it stays one line |
|
noobkidJoin Date: 2007-09-17 Post Count: 649 |
And I don't know the text so I can't just add new lines manually |
|
1waffle1Join Date: 2007-10-16 Post Count: 16381 |
In Lua, it would be something like
for v in txt:gmatch("[^\n]+") do
print(v)
end
If there's something like that in PHP, then use that. |
|
noobkidJoin Date: 2007-09-17 Post Count: 649 |
I'm giving another ex;
I posted s thread to my forum and the following text as the message in database;
Hi
I'm
Bob
Then I'm using a loop to get all the replies of the thread and printing them to the site with this;($row as the database table row)
echo "$row['Message']";
And this is what it looks after that
Hi I'm Bob |
|
1waffle1Join Date: 2007-10-16 Post Count: 16381 |
echo "$row['Message']\n"; |
|
noobkidJoin Date: 2007-09-17 Post Count: 649 |
That's not my point;
How multiline text value can change to one line when I'm printing it..
I NEED HELP WITH THIS! |
|
noobkidJoin Date: 2007-09-17 Post Count: 649 |
Bump. |
|
noobkidJoin Date: 2007-09-17 Post Count: 649 |
Bump |
|