Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 04-29-2007, 05:07 PM   #1 (permalink)
Junior Member
 
nster's Avatar
 
Join Date: 11-06-06
Posts: 16
iTrader: 0 / 0%
Latest Blog:
None

nster is liked by many
Question PHP - How to echo into one textarea tag ? Plz HeLp!!!

Hello guys,
am trying to make a simple shout~box with PHP ,
but i have stuck somehow ..)
am trying to make the echo to be written into a <textarea></textarea> tag , but is impossible cause when finally outputs on screen is printed there more than 1 diferent <textarea>..

Look the here :

PHP Code:
mysql_connect($lololo,$lala,$lalala) or die(mysql_error());

    
mysql_select_db($ololol) or die(mysql_error());

    
$query "SELECT msg1, theauthor, thetime, thedate, thehost 
FROM shoutbox order by id DESC LIMIT 8"
;
    
$result mysql_query($query);
    echo 
"<table>";
    while (
$r=mysql_fetch_array($result))  
  
    { 

        echo 
"<textarea><tr><td><font size='2'>
By $r[date] by <a href='mailto:$r[thetime]'>
$r[theauthor]</a></font></td></tr>
<tr><td><font size='2'>$r[msg1]</font></td></tr>
<tr><td><hr></td></tr></textarea>"
;
        
 }
    echo 
"</table>";
?> 
the result of this, will be more than 1 textarea boxes on my page.. how to correct this, so that every of thy echos that will ever be will be written into one textarea box ?

Thanks in advances fellas n' dudes
waiting for your help on it
nster is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Echo with shopping cart ecommnewbie Coding Forum 5 12-19-2005 10:35 AM
PHP Database If/Or Echo SN3 Coding Forum 15 05-20-2005 07:50 PM
TextArea <BR> Sketch Coding Forum 2 05-05-2005 04:14 PM
<textarea> capacity? (html) Antinaris Coding Forum 1 04-24-2004 08:10 AM
Textarea problem Limit Coding Forum 6 12-20-2003 06:57 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 03:28 AM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.