草庐IT

thematique

全部标签

php - 如何插入多个选择的值

我有一个列表多选,这是代码:MIEMigrationRéunificationfamilialeCatégoriser我的问题是,如果我选择MIE+Migration+Réunificationfamiliale,那么我的数据库中有3行相同的ID。我想要一行插入选择的所有选项(012或3)。$id_struct=$_POST['id_struct'];$thematique=$_POST['thematique']);foreach($thematiqueas$item){$string=$item.'';echo$string;$bdd->exec("INSERTINTOcatego