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.

Dropdown mit PHP-Anbindung

Empfohlene Antworten

Veröffentlicht

Hi

Ich hab mir eine Wamp-Umgebung aufgesetzt und erstmal probiert im HTML-Formular mit Textfeldern in die Datenbank zu schreiben.

Das hat auch super funktioniert.

Nun würd ich aber auch gern von der Datenbank lesen und das ganze in einem Drop-Down-Menu darstellen.

Ins PHP krieg ich die Daten rein und kann Sie auhc ausgeben, aber wie übergeb ich die dann an das Drop-Down-Menu ?

PHP CODE:

<?

$link =mysql_connect("Server","User",Pass");

mysql_select_db("DB" $link);

$query = "select name, vorname from adressen where id > 10;

$result = mysql_query($query,$link);

$num = mysql_numrows ($result);

for ($i =0; $i <$num; $i++)

{

$ow = mysql_fetch_array($result);

echto "Name: $row[name], Vorname : $row[Vorname]";

}

?>

Dropdown-Menu

<select name="Drop">

</select>

THX

J:) nny

genau darum gehts.

kann nur feste values ins drop-down-menu eintragen

Ups

hatte ich übersehen. :rolleyes:

Ist sicher genau das richtige.

THX

:uli

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.