I have an array with three values red, green and yellow. Now i should
insert red into column3 row1
insert green into column3 row2
insert yellow into column3 row3
How can i do that i tried writing the code
foreach ($output as $value)
{
echo ($value.'<br>');
$tstring = implode(',' , $output);
$insert_col= "UPDATE INTO `5` (B) VALUES ('$tstring')";
$insert_result = mysql_query($insert_col);
if ($insert_result)
{
echo ("RECORDED!")|
exit();
}
}
but it does not work. it is filling extra rows to the existing table with a value R.
Please help!