Habe folgende Anweisung in meiner Entwicklungsumgebung (MySQL 5) geschrieben und dort funktioniert sie:
In MySQL 4 (Webserver) funtioniert das ganze nicht mehr - ich bekomme einen Fehler: ERROR 1111 : Invalid use of group function. Gibt es dafür eine MySQL 4-konforme Lösung?
Vielen Dank für eure Hinweise.
Ingo
HTML Code:
SELECT COUNT(tx_tischler_anfrage.uid), tx_tischler_products.title, be_users.username, CONCAT('<div style="background-color: green;width:',COUNT(tx_tischler_anfrage.uid)*5,'px;border-bottom: 1px solid white;"> </div>') FROM tx_tischler_anfrage INNER JOIN tx_tischler_products ON tx_tischler_anfrage.uid_products = tx_tischler_products.uid, be_users WHERE tx_tischler_products.be_user_uid = be_users.uid GROUP BY tx_tischler_anfrage.uid_products ORDER BY COUNT(tx_tischler_anfrage.uid) DESC
Vielen Dank für eure Hinweise.
Ingo
Comment