我有一个小问题/问题...
我做了一个while循环,它回显了href链接。如何为选定的ncrnummer赋予$ _Session正确的值?
这是我的代码:
$query1 = "SELECT id FROM `ncr_input` WHERE projectnummer = '".$_POST['Projectnummer']."'";
$result1 = mysqli_query($conn, $query1);
if ($result->num_rows > 0) {
if ($result1->num_rows > 0) {
while ($row = mysqli_fetch_assoc($result1)) {
$ncrnummer = $row['id'];
if ($row['id']) {
$_SESSION['ncrnummer'] = $row['id'];
echo "<a href=\"http://localhost/ptrg%20NCR%20applicatie/UpdateNCR.php\">{$ncrnummer}</a>";
echo "<br>";
}
}
}
}