display: table
/* css */ display: table /* <table> */ display: table-row /* <tr> */ display: table-cell /* <td> */ display: table-column /* <col> */ display: table-column-group /* <colgroup> */ display: table-footer-group /* <tfoot> */ display: table-header-group /* <thead> */
Rimworld Mods
Mods für Rimworld auch ganz ohne dem Workshop von Steam.
(download rimworld mods without steam and workshop)
Error 451
Die für Netz-Standards zuständige Internet Engineering Steering Group (IESG) hat eine neue Fehlermeldung für Internetseiten auf den Weg gebracht.
Der HTTP-Statuscode 451 steht für Unavailable For Legal Reasons, ist also eine staatliche Zensur und kein technische Fehler auf der Seite oder dem Webserver.
COUNT und GROUP BY
Für eine Top 5 Liste brauche ich nur ein COUNT(*)
und GROUP BY()
an die Datenbank senden.
SELECT `buser`, COUNT(*) AS `zahl` FROM `box` GROUP BY `buser` ORDER BY `zahl` DESC LIMIT 5
Und schon habe ich die Top 5 Einträge und die Summe deren Einträge in einer Liste.
Hab ich in der Form schon für einige Blöck gebraucht.
Archiv Block
Viel Code für so ein simplen Archiv-Block, geht aber nicht kürzer :(
SELECT Month(adatum) AS Month, Year(adatum) AS Year, COUNT(*) AS eintraege FROM artikel WHERE astatus=1 GROUP BY Month(adatum), Year(adatum) ORDER BY adatum DESC