PhP: unix timestamp counting backwords problem

mavrick

New Member
ok well i have this error with a counter i made witch is suppost to count down to 0\[code\]$time=1283593330+(60*15);$time3= time();$time2=$time-$time3;1283593330=Sat, 04 Sep 2010 09:42:10 GMT\[/code\]Error is this:when the $time3 timestamp hit the timestamp for $time it says 05:00:00 instande of 00:00:00.This is the code i use to call it.\[code\]Time left: '.date('g:i:s ',$time2).'<br />\[/code\]im not sure if im doing something wrong, if 5 is the main time for unix_timestamp or the date commend in PHPis there anyway to fix this? or is this from of timestamp just that bad of a idea for what i need.
 
Back
Top