Turning a Blob Field into multiple lines

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
PastorHank
Forum Contributor
Posts: 117
Joined: Sat Jun 03, 2006 7:58 am
Location: Texas Hill Country

Turning a Blob Field into multiple lines

Post by PastorHank »

I have a blob field that I use to store a large amount of text, I need to be able to read the string and turn it into several line, (right now it shows up as one long string), would someone please point me to a function that I can use to turn this string into several 80 character lines. I need to be able to edit it.

thank you
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

PastorHank
Forum Contributor
Posts: 117
Joined: Sat Jun 03, 2006 7:58 am
Location: Texas Hill Country

Post by PastorHank »

I didn't state the problem correctly.

Code: Select all

echo "<input type=textarea wrap='hard' cols='70' rows='7' name='journal_entry' value='$journalentry'>";
I've also tried

Code: Select all

echo "<input type='textarea' wrap='hard' cols='70' rows='7' name='journal_entry' value='$journalentry'>";
Neither works. It generates an input field that is a single row and approximately 25 characters. I can't get it to expand with the scroll bars, all the text shows up but in a single line.
I've also tried it with a soft wrap and with no wrap
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

<textarea> is a separate tag from other <input> tags.
PastorHank
Forum Contributor
Posts: 117
Joined: Sat Jun 03, 2006 7:58 am
Location: Texas Hill Country

Post by PastorHank »

Is it still something I should use? and if so, where can I find the proper syntax for it, or is there another <input> tag that would work better for what I'm trying to accomplish?
Post Reply