$tags = explode(",",$tag); foreach($tags AS $k=>$etiket) { mysql_insert("INSERT INTO etiketler (tag) VALUES ('$etiket')"); }