Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Hamunsch

Mitglieder
  • Registriert

  • Letzter Besuch

Reputationsaktivität

  1. Like
    Hamunsch hat eine Reaktion von JimTheLion in PDO-Fehler invalid parameter number   
    Ich komme bei einer Fehlermeldung nicht weiter.
    Es geht um einen INSERT-Befehl über PDO:
    $req = $db->prepare("UPDATE display SET inhalt = ':inhalt' WHERE id = :id"); $req->execute(array(':inhalt' => $this->data, ':id' => $_SESSION['aktuellesDisplay'])); gibt folgende Fehlermeldung aus:
    <b>Fatal error</b>: Uncaught PDOException: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens in Der Inhalt der Variable id ist in meinem Beispiel 0 (Die Sessionvariable).
    Der Inhalt der Variablen data ist ein array aus serialisierten Formulareinträgen und sieht so aus: a:5:{s:6:"zeile1";s:0:"";s:6:"zeile2";s:5:"rewew";s:6:"zeile3";s:0:"";s:5:"menge";s:0:"";s:5:"preis";s:0:"";}
     
    Die Fehlermeldung sagt doch eigentlich aus, dass die Anzahl der Parameter im prepare-Bereich nicht mit der Anzahl der Parameter im execute-Bereich übereinstimmt, oder?
    Das ist hier aber der Fall.
    Sehe ich hier den Wald vor Bäumen nicht?
    Ich habe die : nicht vergessen und die Variablennamen sind gleich.
    Bitte um Hilfe...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.