Hi folks.
I am trying to retrieve multiple rows from a database and neatly shove them into a readonly textarea.
My code counts the number of rows and I really want the content.
Really what I want is to grab a row from the database, put that in the text area. Skip a line or two in the text area and put the next line.
The idea is that I writing some things to a read only log and want to display in the control of a textarea.
Thanks,
Tim
$q84 = "select article,user from i6articles
where pid = 21
and post_type = 4";
$result84 = mysql_query($q84,$i6link) or die (mysql_error());
while ($row84 = mysql_fetch_object($result84)) {
$content = ("$row84->user, $row84->article" + $content);
}
<textarea id=\"i6f[existingWorkNotes]\" name=\"i6f[existingWorkNotes]\" cols=\"50\" rows=\"7\" wrap=\"hard\" readonly>$content</textarea>