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.

der nächste datensatz ->

Empfohlene Antworten

Veröffentlicht

Hallo!

Gibt es eine einfache Möglichkeit mittels PHP oder MySQL den nächsten Datensatz einer MySQL Tabelle auszulesen? Also, Beispiel:

1. name1

2. name2 x

3. name3

der aktuelle datensatz ist der wo sich das x befindet. wie kann ich nun ganz einfach den nächsten datensatz anzeigen? also im falle des beispiels name3 ????

und wie kann ich dann noch irgendwie hinbekommen, dass wenn ich den letzten datensatz angezeigt bekomme, dass er dann nach zum beispiel klick auf weiter zum ersten datensatz kommt ????

bitte helft mir, ich verzweifele noch ...

als wenn du das über einen link machen möchtest:

zum beispiel nächster name, name zurück kannst du das so machen:

index.php?action=back&id=3

index.php?action=next&id=3

die abfrage:

$back_sql = "select * from TABLE where id < '".$_GET["id"]."' order by id desc limit 1";

$next_sql = "select * from TABLE where id > '".$_GET["id"]."' order by id asc limit 1";

letzter datensatz:

$last = "select * from TABLE order by id desc limit 1";

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.