Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 28th, 2007, 08:20 AM
Authorized User
 
Join Date: Dec 2006
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

 
Old March 1st, 2007, 07:51 AM
Authorized User
 
Join Date: Feb 2007
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>";





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.