Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 28th, 2007, 08:20 AM
Authorized User
 
Join Date: Dec 2006
Location: , , Sweden.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to store textarea in a db?

Hi!
How do I store and retrieve data using textarea?
I tested with BLOB but how do I then put the stored data back in the textarea?
I tried with a fetch_array and then inserting the data as value, but it didnt work. "$temp[innehall]" is the column.
Code:
echo "<textarea class='iFlat' name='innehall' rows='3' cols='15' wrap='virtual' value='" .$temp[innehall] . "'></textarea>";
Can anyone help me with this?

/Hylsan

Reply With Quote
  #2 (permalink)  
Old March 1st, 2007, 07:51 AM
Authorized User
 
Join Date: Feb 2007
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Hylsan,


To get the value from database to textarea follow below code.

For textarea there is no value parameter..


echo "<textarea class='iFlat' name='innehall' rows='3' cols='15' wrap='virtual'>$temp[innehall]</textarea>";
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parsing a BIG XML and store it in DB pravind XML 0 March 14th, 2006 06:35 AM
Parsing a BIG XML and store it in DB pravind XSLT 0 March 14th, 2006 05:50 AM
html textarea to DB ginoitalo Beginning PHP 1 May 30th, 2005 01:49 AM
problem displaying text fron Db to textarea mail4nrs Classic ASP Databases 4 August 20th, 2004 08:31 AM
ASP: Textarea Problem when updating DB seala Access ASP 1 June 13th, 2003 12:35 PM



All times are GMT -4. The time now is 07:53 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.