Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
textarea value from database does not display
Old 03-17-2009, 05:32 AM textarea value from database does not display
Skilled Talker

Posts: 54
Trades: 0
the value of the below textarea does not display in the textarea.nothing is shown.please help. thanks in advance.
PHP Code:
mysql_select_db($database_sql1, $sql1);
$query_rs_uncertpost = "SELECT topic_id, post_owner, post_description FROM forum_post WHERE confirm='no'";
$query_limit_rs_uncertpost = sprintf("%s LIMIT %d, %d", $query_rs_uncertpost, $startRow_rs_uncertpost, $maxRows_rs_uncertpost);
$rs_uncertpost = mysql_query($query_limit_rs_uncertpost, $sql1) or die(mysql_error());
$row_rs_uncertpost = mysql_fetch_assoc($rs_uncertpost);
<textarea name="postdesc" type="text" value="<?php echo $row_rs_uncertpost['post_description']; ?>" ></textarea>
kani alavi is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-17-2009, 06:02 AM Re: textarea value from database does not display
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
the text for a textarea goes between the tags not in the value attribute
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-17-2009, 12:24 PM Re: textarea value from database does not display
lizciz's Avatar
Webmaster Talker

Posts: 744
Name: Mattias Nordahl
Location: Sweden
Trades: 0
What chrishirst said, and there should be neither a type nor value attribute at all.
That is, it should be like so

<textarea name="some_name">value goes here</textarea>
__________________
34343639363436653237373432303635373837303635363337 34323037343638363137343263323036343639363432303739 366637353366
lizciz is online now
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 03-19-2009, 10:10 AM Re: textarea value from database does not display
Skilled Talker

Posts: 84
Trades: 0
Yea ! Please try this ..

<textarea name="txtarea_name" >
<?php echo $row_rs_uncertpost['post_description']; ?>
</textarea>
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
- 1-888-869-HOST(4678)
Award winning Managed Hosting -
Please login or register to view this content. Registration is FREE

Managed Dedicated Servers. Reseller Discounts. 24/7 Impressive Tech Support
HivelocityDD is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to textarea value from database does not display
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13838 seconds with 12 queries