我有这个php文件,它在选择选项时显示信息:
git checkout origin/staging
git pull origin dev
git push origin HEAD
此文件在添加新信息时必须更新表格行:
<?php require 'database.php';
$q=$_GET["q"];
$sql = "SELECT * FROM apparaten WHERE naam = '".$q."'";
$result = mysqli_query($db,$sql);
while($row = mysqli_fetch_array($result)) {
echo '<label for="">Apparaat ID:</label>';
echo '<input type ="number" class="form-control" disabled id="id" name="id" value="' . $row['id'] . '">';
echo '<label for="">Naam:</label>';
echo '<input type="text" class="form-control" id="apparaatnaam" name="naam" value="' . $row['naam'] . '">';
echo '<label for="">Datum:</label>';
echo '<input type="text" class="form-control" id="datum" name="datum" value="' . $row['datum'] . '">';
echo '<label for="">Serie- of IMEI nummer:</label>';
echo '<input type="text" class="form-control" id="serimei" name="serienummer" value="' . $row['serienummer'] . '">';
echo '<label for="">SIM nummer:</label>';
echo '<input type="text" class="form-control" id="simnr" name="simnummer" value="' . $row['simnummer'] . '">';
echo '<label for="">Telefoon nummer:</label>';
echo '<input type="text" class="form-control" id="telnr" name="telnummer" value="' . $row['telnummer'] . '">';
echo '<label for="">PUK code:</label>';
echo '<input type="text" class="form-control" id="puk" name="pukcode" value="' . $row['pukcode'] . '">';
echo '<label for="">Notities:</label>';
echo '<input type="text" class="form-control" id="bericht" name="notities" value="' . $row['notities'] . '">';
echo '</br>';
echo '<button type="submit" class="btn btn-lg btn-primary btn-block" name="wijzigen">Wijzigen</button>';
}
?>
但是当我尝试在这些输入字段中更改某些内容时,它会继续说未定义的索引。我看了很多次代码,但我找不到答案..有人可以帮我吗