Page 1 of 1

how to dispaly result from database to text area?

Posted: Tue Sep 27, 2005 10:00 pm
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

Posted: Tue Sep 27, 2005 10:23 pm
by feyd
you've already asked this question today it appears.. :?

Posted: Wed Sep 28, 2005 2:57 am
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

Posted: Wed Sep 28, 2005 3:14 am
by cavallo
something like this < textarea > $value < /textarea > withouth spaces of course :)

Posted: Wed Sep 28, 2005 8:18 am
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

Posted: Wed Sep 28, 2005 8:47 am
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.