![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 607 Pomógł: 23 Dołączył: 8.09.2004 Skąd: Wrocław Ostrzeżenie: (0%) ![]() ![]() |
witam, napisałem następujący kod:
no i nie wiem, czemu nie dostaję żadnych rezultatów :| Chcę aby pobierał mi rekordy, które są starsze niż 24 h. kolumna date to DATETIME Pozdrawiam |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Przyjaciele php.pl Postów: 5 724 Pomógł: 259 Dołączył: 13.04.2004 Skąd: N/A Ostrzeżenie: (0%) ![]() ![]() |
Cytat CURTIME()Returns the current time as a value in 'HH:MM:SS' or HHMMSS format, depending on whether the function is used in a string or numeric context. NOW()Returns the current date and time as a value in 'YYYY-MM-DD HH:MM:SS' or YYYYMMDDHHMMSS format, depending on whether the function is used in a string or numeric context. CURTIME zwraca tylko godzine, a NOW cala date. Co przy traktowaniu tego jak liczby otrzymasz curtime = 0000000HHMMSS co jest zawsze mniejsze od np 20050130HHMMSS. |
|
|
![]() ![]() |
![]() |
Aktualny czas: 8.10.2025 - 14:19 |