Hi,
Wie genau trage ich die Daten ein (MySql => Tabelle id,ip,zeit ?), und in welchem Zeitformat mache ich dies, damit ich "gestern" und "alles davor" errechnen kann (Umsprung soll aber 0 Uhr sein, nicht "vor 24h")
Waehle einen der Datumstypen, die MySQL bereitstellt.
http://dev.mysql.com/doc/refman/5.1/en/date-and-time-types.html
Darauf kannst du dann auch komfortabel mit den Datumsfunktionen von MySQL operieren.
http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html
MfG ChrisB
--
„This is the author's opinion, not necessarily that of Starbucks.“
„This is the author's opinion, not necessarily that of Starbucks.“