-
I don't know it just worked, but now something is wrong. What I was trying to create was online system. I have two times and two dates: $time & $date - current time and date; $timet & $datet - time and date when user made move in past or maybe now.
I need to count seconds of $time, $date and $timet, $dated to see which is higher.
if xtimetdated - xtimedate >= -300 it will show online.
time formats:
$datet = date("Y-m-d");
$timet = date("H:i:s");
same as $date and $time
-
-
I can't help until I know what is wrong. Can I see an example to your page, also can you please tell me whats supposed to happen from a users point of view.
Thanks! ~Nile
-
-
Here in the end of page... Every USER will see online nicks of others in green color. When theres no user online it shows black message
-
-
So - whats the problem? You don't want the black message?
-
-
The problem is in all system... I give a good time everytime, but somehow its not working. My problem is, that when i log into it shows that I am online and after 6 minutes its not. Somehow, time is counting in bad way...
-
-
Sorry - I didn't completely understand. 6 minutes after you log in - it shows whos online?
-
-
yes, 6 minutes it shows that im online. also I can see other online users.
can you understand my script which i posted? what it does...
-
-
Well, I can't help you, I'm very sorry. Try making a new thread - because this thread is old, and users don't want to post in it [also, the question your asking doesn't have anything to do with the original thread]
Sorry and good luck!
-
-
Ok, let's go back few steps... 
I have
$date = date("Y-m-d");
$time = date("H:i:s");
How I can count(convert) date and time into seconds?
-
-
Ok, let's go back few steps... 
I have
$date = date("Y-m-d");
$time = date("H:i:s");
How I can count(convert) date and time into seconds?
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks