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. |
|
|
|
Spirit86 Daty ... 28.01.2005, 18:51:08
Vertical Użyj NOW() zamiast CURDATE() 28.01.2005, 19:00:44
plewa Jeśli to jest caly kod php to przyczyna jest banal... 31.01.2005, 20:16:20
Spirit86 Cytat(plewa @ 2005-01-31 19:16:20)Jeśli to je... 1.02.2005, 17:36:07 ![]() ![]() |
|
Aktualny czas: 27.12.2025 - 09:53 |