有没有办法动态更改$result = $con->query("SELECT * FROM studuniform WHERE IDNum='$ID'");
$row_rsStudUni = $result->fetch_array(MYSQLI_BOTH);
foreach($_POST['lstSizeShirt'] as $key => $value) {
if(!empty($_POST['lstSizeShirt'])) {
$lstSizeShirt = $_POST['lstSizeShirt'][$key];
$con->query("UPDATE studuniform SET lstSizeShirt='{$lstSizeShirt}' WHERE IDNum = '$ID' AND Record = '$key'");
$con->query("INSERT INTO studuniform (Record, IDNum, lstSizeShirt) SELECT '{$key}', '{$ID}', '{$lstSizeShirt}' FROM DUAL WHERE NOT EXISTS (SELECT * FROM studuniform WHERE IDNum = '$ID' AND Record = '$key') LIMIT 1");
}
}
项目的布局f.e.按项目?
我想也许它可以工作,如果我们只是删除项目,并立即创建另一个,所以onCreateViewHolder被调用?