You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 22, 2018. It is now read-only.
De update- en insertquery van 'Rol' in het Admin-gedeelte werkt niet helemaal. Zie /content/admin/edit.php.
Regel 383 t/m 401:
/* UPDATEQUERY WERKT NIET Updaten van 'Subsitenaam' lukt niet. Updaten van Rolafkorting en Rolomschrinving lukt wel.*/// if everything is fine, update the record in the database // Update Rolafkorting + Rolomschrijvingif ($stmt = $mysqli->prepare("UPDATE Rol R SET Afkorting = ? , Omschrijving = ? WHERE PK_Rol=?"))
{
$stmt->bind_param("ssi", $Rolafkorting, $Rolomschrijving, $PK);
$stmt->execute();
$stmt->close();
}
// Update FK_Subsiteif ($stmt= $mysqli->prepare("UPDATE Rol R LEFT JOIN Subsite S ON R.FK_Subsite = S.PK_Subsite SET R.FK_Subsite = S.PK_Subsite WHERE S.Naam = ? AND R.PK_Rol=?"))
{
$stmt->bind_param("si", $Subsitenaam, $PK);
$stmt->execute();
$stmt->close();
}
/* UPDATEQUERY WERKT NIET */
Regel 471 t/m 481:
/* INSERTQUERY WERKT NIET Bij het inserten van het veld 'Subsitenaam' moet de bijbehorende PK_Subsite uit de tabel 'Subsite' gezocht worden. In de tabel 'Rol' wordt deze waarde opgeslagen in de column 'FK_Subsite'.*/// insert the new record into the databaseif ($stmt = $mysqli->prepare("INSERT Rol () VALUES (? ? ?)")) {
$stmt->bind_param("sss", $Subsitenaam, $Rolafkorting, $Rolomschrijving);
$stmt->execute();
$stmt->close();
}
/* INSERTQUERY WEKRT NIET */
The text was updated successfully, but these errors were encountered:
De update- en insertquery van 'Rol' in het Admin-gedeelte werkt niet helemaal. Zie /content/admin/edit.php.
Regel 383 t/m 401:
Regel 471 t/m 481:
The text was updated successfully, but these errors were encountered: