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.

Empfohlene Antworten

Veröffentlicht

Hallo!

Habe ein sehr dringendes Anliegen.

In der fettgedruckten Zeile ist beim Aufruf folgender Fehler:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /BewerberDB/www/applicant_add.inc.php on line 83

Lustig ist, weshalb ich das gerade nicht ganz verstehe, dass ich das unter Windows erstellt habe, und da wird dieser Fehler nicht angezeigt, unter Linux jedoch schon. Woran kann das liegen??Denn die Daten, die in einem vorigen Formular (welches denselben Fehler hat und anscheinend nicht richtig die Daten aus der Datenbank holt) ausgewählt werden, werden alle nicht angezeigt. Ich würde mich über hilfe sehr freuen!

$sql = "SELECT a.Name, a.FirstNames, a.MiKi, a.Sex, a.PlaceOfBirth,DATE_FORMAT(a.DateOfBirth, '%d.%m.%Y') AS DateOfBirth, a.ID, a.ParentInfos, a.DZB, a.jobid, a.STO,DATE_FORMAT(a.DateOfOffer, '%d.%m.%Y') AS DateOfOffer, DATE_FORMAT(a.DateOfBegin, '%d.%m.%Y') AS DateOfBegin, j.name AS job

FROM Applicants AS a,jobs AS j

WHERE a.ID=$_GET[applicantid] and a.jobid=j.id";

$res = mysql_query ($sql);

$row = mysql_fetch_array($res);

if ($row[sex]=="m") $row[sex]="männlich";

else $row[sex]="weiblich";

if ($row[MiKi]=="1") $row[MiKi]="ja";

else $row[MiKi]="nein";

if ($row[DZB]=="1") $row[DZB]="ja";

else $row[DZB]="nein";

if ($row[sTO]=="1") $row[sTO]="Berlin";

else $row[sTO]="Frankfurt";

$res = mysql_query ($sql);

$row = mysql_fetch_array($res);

Versuch mal folgendes, dann solltest Du erfahren, wo der Fehler liegt:


$res = mysql_query ($sql);

echo '<b>'.mysql_error().'</b><br>';

$row = mysql_fetch_array($res);

Und dass der Fehler nur unter Linux angezeigt wird, könnte an unterschiedlichen Error-Reporting-Einstellungen seitens PHP liegen...

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.