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.

Problem mit SQL-Abfrage in PHP

Empfohlene Antworten

Veröffentlicht

Hallo,

ich hab da mal wieder ein Problem.

Und zwar mit folgendem Script versuch ich einzelne Datensätze zu

aktualisieren, aber irgendwie macht er da garnichts.

An was kann das liegen?


<?php
include ('../connect.php');

mysql_query ("UPDATE ".$DB.".".$T_INTERN_GESYS." SET abteilung='$abteilung', ma='$ma', telefon='$telefon', fax='$fax' WHERE id='$id'")
or die("Ungültige Abfrage: " . mysql_error());
mysql_close ($link);

include ('index.php');
?>
[/PHP]

Hoffe es kann mir jemand helfen.

Gruß

TripleD

a) bringt er dir die Fehlermeldung "Ungültige Abfrage: ..."?

B) baut er die Verbindung überhaupt richtig auf? Läßt du dir in connect.php einen Fehler ausgeben, wenn er sie nicht erfolgreich aufbaut?

c) sonst laß dir mal die Query in nen String ausgeben und zeig den mit print mal an. Kannst ihn auch testhalber mal in PHPMyAdmin oder irgendeinem ähnlichen Tool testen.

Hi,

ich hab für den Verbindungsaufbau und für Datenbankverbindung jeweils eine Fehlerausgabe, falls da mal was schief laufen sollte. Es kommen aber keine Fehler.

Ich mach da schon seit 2 Tagen dran rum, aber nichts hilft.

TripleD

einfach den SQL ausgeben und mal im phpmyadmin absetzten

Hallo,

hab den Fehler gefunden.

Hab vergessen, die ID mit an das Script zu übergeben.

Danke für eure Hilfe.

Gruß

TripleD

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.