Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [php] Pytanie odnośnie czasu...
-Gość-
post 5.07.2006, 15:57:42
Post #1





Goście







Mam pytanie jak zrobiś skrypt ktory zapisuje do zmiennej czas jaki będzie za 5 min? próbowałem na wiele sposobów i nie wychodziło :-P
Go to the top of the page
+Quote Post
Cysiaczek
post 5.07.2006, 16:07:17
Post #2





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Jaki format czasu?


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
nospor
post 5.07.2006, 16:09:32
Post #3





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




http://pl.php.net/manual/pl/function.strtotime.php

  1. <?php
  2. echo date('H:i:s', strtotime('+5 minute'));
  3. ?>


--------------------

"Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista
"Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer

Go to the top of the page
+Quote Post
-Gość-
post 5.07.2006, 16:22:04
Post #4





Goście







THX.. mam jeszcze drugie pytanie jak z bazy mysql wypisać rekordy w których pole czas jest wcześniejsza od zmiennej czas2?
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 12.06.2025 - 10:42