am reusit ceva acum o ora .. ma plictiseam si am zis sa mai incerc putin 
my code pentru cine are nevoi de asa ceva 
Instert this to MySQL DB
Cod:
CREATE TABLE `count` (
`counting` enum('yes','no') NOT NULL default 'no',
`endtime` varchar(255) NOT NULL default ''
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
INSERT INTO `count` VALUES ('no', '0');
counter.js
Cod:
function CountTime(timername,seconds){
v=new Date();
var Timer=document.getElementById(timername);
n=new Date();
s=seconds-Math.round((n.getTime()-v.getTime())/1000.);
m=0;
h=0;
if(s<0){
if (timername.substring(0,12)=="timer_test") {
Timer.innerHTML='The counting is complete<br><br><form method=\'POST\' action=\'countdown.php\'><input name=\"clear\" value=\"Clear Time\" onClick=\"location.href=\'countdown.php\'\" style=\"width: 200px;\" type=\"submit\"></form>'
}
}else{
if(s>59){
m=Math.floor(s/60);
s=s-m*60
}
if(m>59){
h=Math.floor(m/60);
m=m-h*60
}
if(s<10){
s="0"+s
}
if(m<10){
m="0"+m
}
if (timername.substring(0,12)=="timer_test") {
Timer.innerHTML=h+":"+m+":"+s
}
}
seconds=seconds-1 ;
window.setTimeout("CountTime('"+timername+"',"+seconds+");",999);
}
countdown.php
PHP Cod:
<?php
$connection = mysql_connect("localhost","root","parola") or die ("Unable to connect to MySQL server.");
$db = mysql_select_db("countdown") or die ("Unable to select requested database.");
$query = "SELECT * FROM count";
$result = mysql_query($query);
$row= mysql_fetch_array($result);
$time = time();
$timeindb = $row['endtime'];
$add = $_POST['add'];
if(isset($_POST['count'])) {
$query = mysql_query("UPDATE count SET counting='yes', endtime='". $time ."'+$add");
header ('Location: countdown.php');
}
if(isset($_POST['clear'])) {
$query = mysql_query("UPDATE count SET counting='no'");
header ('Location: countdown.php');
}
?>
<html>
<head>
<title>Countdown</title>
<script src="counter.js" type="text/javascript"></script>
</head>
<body>
<div id="timer_test">
</div>
<?
if ($row['counting'] == 'yes') {
echo ?>
<script language="JavaScript">
CountTime('timer_test',<?=$timeindb-$time?>);
</script><? ;
} else {
echo ?>
<form method='POST' action='<?=$_SERVER[PHP_SELF]?>'>
<input name="add" type="text"> Time in secunds<br><br>
<input name="count" value="Start" onClick="location.href='countdown.php'" style="width: 200px;" type="submit">
</form> <? ;
}
?>
</body>
</html>