这是我的代码。不幸的是,这会导致解析错误。谁能想到更好的方法呢?
$data = mysqli_query($link, "SELECT * FROM TreatmentTypes ORDER BY TreatmentType ASC");
while($row = $data->fetch_assoc())
{
$str = row['TreatmentTypeID'];
echo "<br><br><br>".$_POST['txt'.$str];
}
答案 0 :(得分:3)
根据您的示例判断,您错过了row['TreatmentTypeID'];
中的$,因此它应为$row['TreatmentTypeID'];