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.

fehlermeldung

Empfohlene Antworten

hi leute!

also ich bekomme diese fehlermeldung:

Warning: Supplied argument is not a valid MySQL result resource in d:\...blablabla...\anmeldung.php on line 34

und line 31 bis 40 sehen so aus:

$db = mysql_connect();

$sqlab = "select login_id, email from user";

mysql_db_query("game", $sqlab);

$num = mysql_num_rows($res); <----- das ist line 34!!!

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

{

$existing_login = mysql_result($i, "login_id");

$existing_email = mysql_result($res, $i, "email");

ich verstehe zwar die fehlermeldung, aber ich weiß nicht wie ich sie beheben soll!

wo liegt der fehler?

danke schonmal im voraus!

da_ill

Originally posted by Da_Ill

mysql_db_query("game", $sqlab);

$num = mysql_num_rows($res); <----- das ist line 34!!!

mysql_num_rows erwartet eine SQL-Ergebnis Menge, um dann die Anzahl der Zeilen auszugeben, $res enthält aber nichts. Zeile 33 müsste dann so aussehen:

$res = mysql_db_query("game", $sqlab);

damit $res das Ergebnis dieser Anfrage übergeben wird.

gruß

Christian

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.