p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   PHP How-To (http://p2p.wrox.com/forumdisplay.php?f=98)
-   -   How to store textarea in a db? (http://p2p.wrox.com/showthread.php?t=54698)

Hylsan February 28th, 2007 08:20 AM

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


prashu_hi25 March 1st, 2007 07:51 AM

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>";


All times are GMT -4. The time now is 10:28 AM.

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