![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 12 Pomógł: 0 Dołączył: 5.02.2009 Ostrzeżenie: (0%) ![]() ![]() |
Witam
Mam problem chce ustawić timeleft który pokaże użytkownikowi np.że po jakimś czasie zresetuje rzecz 10min Proszę o wyruzomiałość dopiero rozpoczynam przygodę z php (IMG:http://forum.php.pl/style_emoticons/default/worriedsmiley.gif) Cytat <?php
$Timeleft=date( '00:00:00', time( ) ); $mTimeleft = mktime(1, 0, 0, date("m"), date("d"), date("Y")); $timestampFromSql = strtotime($Timeleft); $now = time(); $mnow = mktime(date("H"),date("i"),date("s"),date("m"),date("d"),date("Y")); $verschil = $mnow - $mTimeleft; $aantal = $verschil / 600; $aantal = floor($aantal); $aantalfinal = $aantal * 600; $timeleft = date('H:i:s', ((($aantalfinal - $mnow)+600)-43200-3600)); ?> |
|
|
![]() ![]() |
![]() |
Aktualny czas: 22.08.2025 - 23:18 |