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.

Zwei Datenbanktabellen abfragen.....

Empfohlene Antworten

Mal eine Frage auf deren Antwort ich derzeit nicht komme....

Ich habe eine Tabelle Artikel und eine Tabelle Film, nun sollen mir alle Artikel ausgegeben werden die ein Film sind (also so in der Tabelle Artikel definiert sind und auf die Tabelle Film verweisen) und die zugleich eine DVD sind (also wenn in dem dazugehörigen Eintrag "Film.Medium" die DVD definiert ist.

Folgende Abfrage zeigt mir jedoch ALLE Filme, also auch die VHS an, was habe ich falsch gemacht? :-(

$sql = "SELECT * FROM $DB_artikel,$DB_film WHERE $DB_artikel.Typ ='2' AND $DB_film.Medium='DVD' ORDER BY Titel ASC;";

echo $sql;

Echo SQL gibt aus:

SELECT * FROM Artikel,Film WHERE Artikel.Typ ='2' AND Film.Medium='DVD' ORDER BY Titel ASC;

Du brauchst in der where-clause noch eine Verknüpfung beider Tabellen.

Kanns nur in Sql, wie das in Access aussieht musste du selber wissen, ausserdem kenne ich deine Tabellen nicht.

-> so alla: where ... and film_atikel_id = aktikel_id

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.