I know this should be kind of simple, but I just can't figure it out on my own. So heres the code:
while($row01=mysql_fetch_array($res01))
{
$results=stripslashes($row01['spec_search'])." ";
echo $results;
mysql_query("update products set search='".$results."' WHERE id='".$row['id']."' ");
}
The $results return multiple values. It echoes well, like "tree bag shoes". But at the *mysql_query* only the last result (shoes in this example) gets updated in my table. How can I make it so that everything gets updated?
Many thanks!