$result= mysqli_query($connect, $sql);
while ($patients= $result->fetch_assoc()){
echo $patients['group']; //prints OK
echo $patients['exercise_name']; //prints OK
echo $patients['use_exercise']; //prints OK
$insert[] = array("group" => $patients['group'],
"name" => $patients['exercise_name'],
"use" => $pacientes['use_exercise']
);
}
echo json_encode($insert); //prints TRUE
模型中有ManyToMany字段,名为标记
如何过滤包含精确选定标签集的条目?
例如。获取所有带有ID 1,2,3而不是1,2,3,4或1,2的标签
像这样:
Entry
谢谢!