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.

php und umbuche

Empfohlene Antworten

Veröffentlicht

Ich habe folgendes Problem,

ich habe 2 Tabellen sowohl in der der einen als auch in der anderen gibt es

ein Fellt mit der Bezeichnung Modell.

Der Inhalt ist bei beiden gleich.

Z.b. Test

So, nun möchte ich den einen Wert in Tabelle A mit Tabelle B abgleichen,

dafür habe ich folgendes Script :


$db_lager = mysql_connect($mysqlhost, $mysqluser, $mysqlpassword);
$sqlab_lager = "update lager "; # zugriff auf die tabelle lager
$sqlab_lager .= " set menge = $mengeori"; # update der menge
$sqlab_lager .= " where modell ='$produkt'";# wo modell = modell name in der umlauf liste ist
$res_lager = mysql_db_query("$$mysqldb", $sqlab_lager);
mysql_close($db_lager);
[/php]

Es ist zwar nun der "Datenbank befehl".

Schon weiter oben im Script werden die einzelen Variablen aus der Tabelle B ausgelsen.

Vielleicht seht ihr ja eine n Fehler.

Nachtrag : => Fehler schon gefunden.

[php]
mysql_db_query("$$mysqldb", $sqlab_lager);

ein $ war zu viel

btw.

Note: This function has been deprecated since PHP 4.0.6. Do not use this function. Use mysql_select_db() and mysql_query() instead.

www.php.net/mysql_query

schau mal nach mysql_query(), da mysql_db_query() nicht weiter unterstuetzt wird... ;)

so long

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.