When I echo a variable it gave me a great looking list but when I update mysql database it only add the last row in the list I read that there is a problem with array and foreach with mysql.
foreach ($array["product"] as $list)
{
$ok = ''.$list[0].'';
$sql = mysql_query("UPDATE product SET desc='$ok' WHERE id='$id'") or die(mysql_error());
}
}
Is there an easy way to put my list in mysql whitout having to serialize I read its not the best thing to do and I am not familiar with that.
Thanks!