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.

Empfohlene Antworten

Veröffentlicht

Hallo Leute,

ich probiere jetzt schon 2 Stunden an einem eigentlich einfachen Problem, ich kann mir aber nicht erklären warum folgendes nicht geht:

Ich habe folgende Datenbank:

spieler_id tinyint(2) NULL: Nein Standard: Extra: auto_increment

spielername varchar(60) NULL: Ja Standard: NULL

tore int(3) NULL: Nein Standard: 0

Und folgenden kleinen Skriptausschnitt (PHP):

$qry = mysql_query("INPUT INTO 1mannschaft_schuetzen VALUES ('', '$e_neu_spieler', $e_tore)");

Die Verbindung funktioniert, denn vorher ersetze ich im Script schon einige Datensätze, nur diesen neuen hier einfügen geht nicht, ich raff net warum :(

Er tut einfach nichts, gar nichts, als würde die Anweisung gar nicht existieren ?!?!

Bitte Hilfe

Es gibt keinen Fehler nichts, er tut eigentlich nichts ...

Die Tabelle gibts. Ich habe die gleiche Anweisung oben schonmal gemacht mit REPLACE INTO und da gings, nur bei INSERT INTO gehts net :-(

$qry = mysql_query("INPUT INTO 1mannschaft_schuetzen VALUES ('', '$e_neu_spieler', $e_tore)");

Ich hab zwar schon ewig nicht mehr mit SQL gearbeitet, aber heisst es nicht INSERT INTO?


INSERT INTO Persons 

VALUES ('Hetland', 'Camilla', 'Hagabakka 24', 'Sandnes')

und das , in VALUES(",'$e_neu_spieler' ist AFAIK auch zuviel. IMHO müsste es

("INSERT INTO 1manschaft_schuetzen VALUES(".$e_neu_Spieler.','.$e_tore."))"; 

heisen?

Oder täusche ich mich jetzt?

******* DIE WAND AN ICH BIN SO HOHL !!!!!!!!!!!

Danke Ihr seid meine Rettung !!!!

Es heißt INSERT anstatt INPUT !!!!

AHHH JUHU DANKE !!!!!!!!!

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.