This is my code. Unfortunately this causes a parse error. Can anyone think of a better way to do this?
$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];
}
$at the beginning ofrow['TreatmentTypeID'];->$str = row['TreatmentTypeID'];