how to dispaly result from database to text area?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
rami
Forum Contributor
Posts: 217
Joined: Thu Sep 15, 2005 8:55 am

how to dispaly result from database to text area?

Post by rami »

i know how to dispaly data from database to simple plain page
are ther any code ...code piece where can i see
the data in the database in the text area in the another page....

question is
how to dispaly result from database to text area

(this makes the page size(length) small..especially if the message posted is too long)
thanks
rami
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you've already asked this question today it appears.. :?
rami
Forum Contributor
Posts: 217
Joined: Thu Sep 15, 2005 8:55 am

Post by rami »

feyd wrote:you've already asked this question today it appears.. :?
but there wasnt 1 good answer
it is not that no one knows how to do it
so i thought people didnt understood it ..and clarified it..
by the way mr fyed if you had just typed a link where it is found ...from ur memo lane may be it would have taken less time that even typing that long line....

i am not voilating the big rules ...laws of the forum...
its said" is good to be opitimistic"
never mind...
rami
cavallo
Forum Newbie
Posts: 2
Joined: Wed Sep 28, 2005 2:34 am

Post by cavallo »

something like this < textarea > $value < /textarea > withouth spaces of course :)
rami
Forum Contributor
Posts: 217
Joined: Thu Sep 15, 2005 8:55 am

Post by rami »

cavallo wrote:something like this < textarea > $value < /textarea > withouth spaces of course :)
is it real or you are just guessing any way i will give it a try
by the way when do we do like this

Code: Select all

<td>. {row['name'] .}
i mean those use of dot
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Post by jayshields »

cavallo has the right idea. textareas are coded different to text inputs so you need to open textarea tags, echo the variable inside it and then close the textarea tags after it.

something like...

Code: Select all

echo '<textarea name="blah">', $result, '</textarea>';
will work fine.
Post Reply