fehlermeldung + problemstelle jeweils:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(`datum`) = DATE('2007-05-31 18:58:15'
' at line 1
$abfrage_groesster_wert_in_einem_jahr = "SELECT COUNT(*) FROM `".$db_prefix."counter` WHERE YEAR(`datum`) = YEAR('".$row->datum."'";
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(`datum`) = DATE(NOW() - INTERVAL 0 DAY)' at line 1
$abfrage_zaehlerstand_diese_woche = "SELECT COUNT(*) FROM `".$db_prefix."counter` WHERE DATE(`datum`) = DATE(NOW() - INTERVAL ".$i." DAY)";
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(`datum`) = DATE(NOW() - INTERVAL 5 DAY)' at line 1
$abfrage_zaehlerstand_jahre = "SELECT COUNT(*) FROM `".$db_prefix."counter` WHERE EXTRACT(YEAR FROM `datum`) = '".$richtiges_datum_dieses_jahr."'";
weiss jemand woher die fehlermeldungen kommen?