Hi,
Please help me to display values that i fetch from a mysql db into a textarea seperated with comma
the code looks like this ...
foreach(condition)
{
$sql=select data from table where (condition);
$row=mysql_fetch_row(mysql_query($sql));
$data = $row[0].",";
echo $data; // gives the string seperated with commas
}
<textarea ><?=$data?></textarea>
this gives only the last data value only ..
Does anybody knows a solution for this