This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
mySQL Fehlermeldung
#1
hallo, hier mein SQL Code in PHP

$result = $link->query("SELECT COUNT(*) AS id FROM TelegramStorage 
                          JOIN TelegramDescription WHERE LEFT (TelegramDescription.bosmon = 1)");
  $TelegramStorage_Count = $result->fetch_all(MYSQLI_ASSOC);
  $total = $TelegramStorage_Count[0]['id']
sobald ich die zweite Tabelle mit der Bedingung ( JOIN TelegramDescription WHERE LEFT ...) eingebe kommt es zur Fehlermeldung!


Zitat:Fatal error: Uncaught Error: Call to a member function fetch_all() on bool in /volume1/web/oesoft/monitorOESoft.php on line 7 Error: Call to a member function fetch_all() on bool in /volume1/web/oesoft/monitorOESoft.php on line 7 Call Stack: 0.0006 361416 1. {main}() /volume1/web/oesoft/monitorOESoft.php:0
Zitieren
#2
bin schon auf dem richtigem weg, es kommt keine fehlermeldung mehr! aber habe kein ergebnis :-(

  $result = $link->query("SELECT COUNT(*) AS id FROM TelegramStorage LEFT JOIN TelegramDescription ON (TelegramStorage.Address, 7) = (TelegramDescription.address, 7)
                          WHERE (TelegramDescription.bosmon = 1) ORDER BY TelegramStorage.id");
  $TelegramStorage_Count = $result->fetch_all(MYSQLI_ASSOC);
  $total = $TelegramStorage_Count[0]['id'];
Als Lösung markieren Zitieren
#3
Notfalls frag mal im PHP Forum nach , weil SQL ist auch nicht gerade mein Hauptthema.

Da kann ich nur helfen wenn ich das selber testen kann
Hier sind alle meine Lösungen aus allen Foren. Ich helfe auch in Facebook-chat
Als Lösung markieren Zitieren


Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste