PDA

View Full Version : I need help...



Cherpi
11-06-2010, 07:58 PM
I need something that will count every day

So like on the first day it will say 1, then when it turns to 00:00 it will say 2, then at 00:00 again it will turn to 3.

I don't mind what language it's done in but does anyone have a link or maybe make it for me, thanks.

Cooljuanitostar
12-06-2010, 12:20 PM
Can you explain us more?

I dint understand your question. o.O

If you explain better we will help you inmediatly

- By Cooljuan For Habbox Forum

Apolva
12-06-2010, 12:31 PM
In PHP (untested):



<?php

// Set the timezone
putenv ('TZ=Etc/GMT+0');

// Starting date
$since="1 April 2010";

echo "Day: " . floor(1+(time()-strtotime($since))/86400);

?>

Want to hide these adverts? Register an account for free!