$keyyy = null;
while ($r = mysqli_fetch_array($rs)){
    $tagg = array($r["name"]);
    foreach ($tagg as $key) {
      $keyyy = $key.",";
    }
}the printed result is
1,2,3,4,5, just why do I only have  5,  when I update to the number table? 
 instead of  1, 2, 3, 4, 5,  
UPDATE `blog` SET
      `tags` = "{$keyyy}"
      WHERE url = "XXX"