Hi,
I tried to retrieve data into textarea and tried couple of ways, it seemed to be trouble let it work.
Partial code like
First way:
$query = " Select seq5 from Seq where CloneID = '$CloneID' ";
$result = safe_query ($query, $link);
while ($sequence = mysql_fetch_array($result))
{
echo ("<textarea name=\"sequence\" rows=6 cols=60>$sequence</textarea>");
echo "<br>";
}
In my textarea, word "array" came out. I dont understand why.
Second way:
while ($sequence = mysql_fetch_array($result))
{
echo ("<textarea name=\"sequence\" rows=6 cols=60>$sequence['seq5']</textarea>");
echo "<br>";
}
Textarea is blank.
Please give your precious advice.
Thanks
HR
I tried to retrieve data into textarea and tried couple of ways, it seemed to be trouble let it work.
Partial code like
First way:
$query = " Select seq5 from Seq where CloneID = '$CloneID' ";
$result = safe_query ($query, $link);
while ($sequence = mysql_fetch_array($result))
{
echo ("<textarea name=\"sequence\" rows=6 cols=60>$sequence</textarea>");
echo "<br>";
}
In my textarea, word "array" came out. I dont understand why.
Second way:
while ($sequence = mysql_fetch_array($result))
{
echo ("<textarea name=\"sequence\" rows=6 cols=60>$sequence['seq5']</textarea>");
echo "<br>";
}
Textarea is blank.
Please give your precious advice.
Thanks
HR